This content has been marked as final.
Show 4 replies
-
1. Re: Self referential entity mappings
dhinojosa Aug 5, 2008 6:15 PM (in response to stephendv.stephen.twisteddelight.org)The same way...
@ManyToMany() @JoinTable(name = "user_friends", joinColumns = {@JoinColumn(name = "userID")}, inverseJoinColumns = {@JoinColumn(name = "friendUserID")}) public List<User> getFriends() { return friends; }
-
2. Re: Self referential entity mappings
christian.bauer Aug 5, 2008 6:25 PM (in response to stephendv.stephen.twisteddelight.org)Next time don't ignore our forum rules and go here: http://forum.hibernate.org
-
3. Re: Self referential entity mappings
stephendv.stephen.twisteddelight.org Aug 5, 2008 7:58 PM (in response to stephendv.stephen.twisteddelight.org)Thanks! I didn't think it could be that straight forward.
-
4. Re: Self referential entity mappings
stephendv.stephen.twisteddelight.org Aug 5, 2008 7:59 PM (in response to stephendv.stephen.twisteddelight.org)Apologies, I will do next time.