-->
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.  [ 2 posts ] 
Author Message
 Post subject: generating composite ids
PostPosted: Wed Feb 16, 2005 6:32 pm 
Beginner
Beginner

Joined: Fri Oct 15, 2004 4:54 pm
Posts: 32
Read the rules before posting!
http://www.hibernate.org/ForumMailingli ... AskForHelp

i have come up recently with a couple of cases where i wanted to
auto-generate a composite key. in both these cases i wanted to generate the IDs within hibernate, but hibernate won't let me do that for a composite key (cannot specify a generator). i poked around in the code and discovered that there is nothing programatically preventing this, it's only the dtd that stops it. so i modified the dtd and tried it out and it works just fine, in both cases.

is there something i am not seeing about allowing composite keys to be generated that makes it a bad idea?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 07, 2005 1:16 pm 
Beginner
Beginner

Joined: Wed Feb 11, 2004 6:08 am
Posts: 29
Location: Germany
have you got an answer to your question ? I have of legacy tables with composite keys and wish I had a genertor for it ...


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

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.