-->
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: many-to-many as two on-to-many example
PostPosted: Tue Sep 21, 2004 6:56 pm 
Newbie

Joined: Tue Sep 21, 2004 6:35 pm
Posts: 2
This is kind of a duplicate to a post on the newbie forum. The reason for the duplicate is the other is a request for a solution to the problem. This is a recommendation that you include an example in the book (though tbe answer would also be nice).

The Hibernate In Action book recommends that many-to-many relationships are often best mapped as two one-to-many 's in several places. I wish they gave an example..

My question regards how to navigate to the desired set. If I have a many-to-many of User to Roles, how do I get a set of Roles when mapped as two one-to-many 's. When I map a one-to-many from User to UserRole, I get a set of UserRoles, not Users.

PS The book is very good, up to both Manning's and Hibernate's high standards. Thanks.


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.