File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes about hibernate unidirectional and bidirectional Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "about hibernate unidirectional and bidirectional" Watch "about hibernate unidirectional and bidirectional" New topic
Author

about hibernate unidirectional and bidirectional

vasu chowdary
Ranch Hand

Joined: Mar 15, 2008
Posts: 74
hi i have little experience with orm.could you please tell me what is unidirectional assosiation and birectional assosiation ?when it is rewuired to use in our application?
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 23635

vasu chowdary wrote:hi i have little experience with orm.could you please tell me what is unidirectional assosiation and birectional assosiation ?when it is rewuired to use in our application?

Unidirectional and bidirectional refer to which objects know about each other. For example, if I have a reference to you and you don't, it is unidirectional. If we both have references, it is bidirectional. It is never required to use either. What is best depends on your application/domain/usage.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Certs: SCEA Part 1, Part 2 & 3 & Core Spring 3, OCAJP
vasu chowdary
Ranch Hand

Joined: Mar 15, 2008
Posts: 74
thank you very much jeany
 
IntelliJ Java IDE
 
subject: about hibernate unidirectional and bidirectional
 
Threads others viewed
Passed SCJP - 1.4 with 100%
HFEJB Question
Outer class instance
one to many unidirectional and bidirectional
[JPA - Hibernate] OneToMany without join table
developer file tools