-->
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: foreign key with two or more columns
PostPosted: Wed Oct 05, 2005 3:27 pm 
Newbie

Joined: Mon Jul 18, 2005 12:51 pm
Posts: 6
Location: São Paulo
Hello dudes, what the best way to map a foreign key with more that two columns?

Regards,
lottalava


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 05, 2005 6:05 pm 
Regular
Regular

Joined: Thu Jul 29, 2004 11:55 pm
Posts: 75
You need to use the <composite-id> tag and the best approach is to use a component as the composite identifier. See section 9.4 in the reference manual and 6.1.5.


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.