-->
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: Can I have joined-subclass with composite key?
PostPosted: Mon Oct 29, 2007 9:16 pm 
Newbie

Joined: Fri Feb 09, 2007 6:51 pm
Posts: 16
I have tables with composite key table per subclass inheritance:
1-st table has composite primary key and 2-nd has composite foreign key.
Can I have somehow joined-subclass with composite key in hibernate?

I appreciate your help.

Sincerely,
Artem


Top
 Profile  
 
 Post subject: Re: Can I have joined-subclass with composite key?
PostPosted: Mon Oct 29, 2007 9:23 pm 
Newbie

Joined: Fri Feb 09, 2007 6:51 pm
Posts: 16
artem wrote:
I have tables with composite key table per subclass inheritance:
1-st table has composite primary key and 2-nd has composite foreign key.
Can I have somehow joined-subclass with composite key in hibernate?


I've found a way:
<key>
<column name="column1"/>
<column name="column2"/>
</key>


Is it correct?


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.