Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unidirection Association

 
Bhavik Patel
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to hibernate and wanted to know how do i represent one to many association in mapping file if i just want it to be unidirectional.

if i represent < one-to-many > element in one class and <many-one> in other class then does it mean it's representing Bi directional Association ??
 
Jignesh Patel
Ranch Hand
Posts: 626
Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No,

In your class wheen you define one-many there you mentioned inverse=true.
It makes bidirectional relationship.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic