-->
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: bidirectional navigation of an assocaition
PostPosted: Fri Jan 07, 2005 12:33 pm 
Newbie

Joined: Mon Nov 15, 2004 1:42 pm
Posts: 11
Is it necessary to support bidirectional navigation of an association or should this be dependent on the application requirements? I'm reading Hibernate in action and it is discussed in a way that makes it seem like at the very least a "best practice".

-Mark


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 07, 2005 1:21 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
You can usually chose if you want an association bidirectional or unidirectional. In some cases, e.g. one-to-one between A and B with a foreign key in B's table, you might have to make it bidirectional if you want to navigate from A to B (that means you also need B to A). Those cases are very rare.


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.