-->
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: Joined Sub-Class
PostPosted: Wed Oct 01, 2003 7:01 pm 
Newbie

Joined: Wed Oct 01, 2003 6:39 pm
Posts: 1
I have a class and a joined sub-class that have independent primary keys, both of which I'd like to generate from Oracle sequences.

Using Oracle to generate the key for the class is no problem, since I can use the <id> element at the class level to declare the primary key column of the table, and use the <generator> child element to specify that Oracle will handle the sequence.

So far as I can tell, however, I cannot do the same thing for the joined sub-class, since the sub-class does not permit a nested <id> element.

Is there a way to tell hibernate to allow Oracle to generate different keys using differenct sequences for a class and its joined sub-class?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 02, 2003 4:57 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
No. Hibernate assumes a primary key association between the tables.


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.