-->
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.  [ 1 post ] 
Author Message
 Post subject: self-referencing, many-to-many and join table
PostPosted: Wed Apr 09, 2008 12:25 pm 
Beginner
Beginner

Joined: Wed Mar 21, 2007 10:23 am
Posts: 20
Dear all,

I've been trying to establish a self-reference (many-to-many) via a join table for many days, but still don't manage to achieve it. However, my problem seems to be pretty simple and common.

I have a class (let's say group) which contains a set<group> property. At the end of the day I would like to obtain a table named group and a join table which establish the correspondence between two groups (group 1 is associated to group 2, group 1 is associated to group 3 and so one).

Does anyone have a hint to help me design my mapping files ?



Thank you in advance.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.