-->
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: many-to-many with multiple columns
PostPosted: Tue Aug 21, 2007 7:09 am 
Newbie

Joined: Tue Aug 21, 2007 6:58 am
Posts: 1
Location: London
Hello,

I am new to Hibernate. I am confused how to do a mapping and implement the relationship between the following tables.

Table 1:
tab1col1 -- pk

Table 2:
tab2col1 -- pk

Table 3:
tab3col1 -- pk

Now I have a juction table which maps these data together.

Table 4:
tab1col1 - tab2col1 - tab3col1 -- composite PK. Can anyone help me in how should I do a many-to-many relation with this type of join.

Many thanks


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 21, 2007 9:12 am 
Expert
Expert

Joined: Fri Jul 13, 2007 8:18 am
Posts: 370
Location: london
This is discussed here:
http://www.hibernate.org/hib_docs/v3/re ... ns-ternary


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.