-->
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.  [ 3 posts ] 
Author Message
 Post subject: Many-to-one and Composite Keys
PostPosted: Fri Oct 29, 2004 9:42 am 
Newbie

Joined: Fri Oct 29, 2004 9:40 am
Posts: 3
Is there a way to get many-to-one relationship between two classes (tables) with composite keys? The many-to-one tag appears to only support one column.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 29, 2004 10:04 am 
Expert
Expert

Joined: Tue Oct 05, 2004 9:45 am
Posts: 263
well ... :) ...

you can do something like this :

Code:
<many-to-one ...>
<column name="a"/>
<column name="b"/>
</many-to-one>


Order is important!

gtx
curio


Top
 Profile  
 
 Post subject: Thank You!
PostPosted: Fri Oct 29, 2004 10:30 am 
Newbie

Joined: Fri Oct 29, 2004 9:40 am
Posts: 3
Thanks! That did it. I'm new to Hibernate and I've spent the last day or so stuck on this problem.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.