-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: autoincrement Composite Keys
PostPosted: Sun Oct 31, 2010 9:40 am 
Newbie

Joined: Sun Oct 31, 2010 9:31 am
Posts: 1
Hi Everyone!

I have an issue with the composite Key, i know it has been discussed over and over again, but i really need at least a workaround for the problem. I hope sombody here can help me.

I have a database where im forced to use Composite Primary keys bcause everything is based on clients, there can be plenty of them and every client has his own Addresses, Contacts and so on...

Since hibernate is not able to autoincrement one of the Values of the Composite keys i would need a practicable workaround but couldnt find one. I even found a closed and fixed Jira regarding that problem but still its not possible. I found some workarounds using interceptors, custom User types and custom generators but wasnt able to fully understand them.

Can anyone help me with that problem or offer me a solution where i dont have to use Composite Keys?

I'd really appreciate that!

Greets Reggie


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.