-->
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: about unidirectional and bidirectional
PostPosted: Sat Mar 20, 2010 12:37 am 
Newbie

Joined: Sat Mar 20, 2010 12:33 am
Posts: 1
hi friends,

I have little experience with hibernate.could you please tell me what is unidirectional and bidirectional assosiation and when it is required?


Top
 Profile  
 
 Post subject: Re: about unidirectional and bidirectional
PostPosted: Mon Mar 22, 2010 3:51 am 
Expert
Expert

Joined: Tue Jun 16, 2009 3:36 am
Posts: 990
Well, 'unidirectional' and 'bidirectional' are not terms which are restricted to hibernate.
These are terms which belong to the common language of modeling,
(seehttp://edn.embarcadero.com/article/31863#classdiagrams)
In poor words:
-define the relation unidirectional if you need to navigate only in one direction (only either a.getB() or b.getA() exists)
-define the relation bidirectional if you need to navigate in both directions (a.getB() and b.getA() exists)


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.