posted 8 years ago
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