Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

achieve the same using one to many bidirectional as for many to one unidirectional

 
Monica Shiralkar
Ranch Hand
Posts: 873
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Suppose we have 2 tables: Vendor and Customer such that one vendor can have multiple customers.


One to many unidirectional: If we do save operation on Vendor then customer also gets saved. (provided cascading is used)

many to one unidirectional: If we do a save operation on customer, vendor also gets saved.(provided cascading is used)

one to many bidirectional: If we do save operation on Vendor then customer also gets saved and if we do a save operation on customer, vendor also gets saved.


My confusion is that is the many to one unidirectional case not already covered in one to many bidirectional case. So what we can achieve using many to one unidirectional we can achieve using one to many bidirectional.

thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic