• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

about hibernate unidirectional and bidirectional

 
vasu chowdary
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
vasu chowdary
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you very much jeany
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic