Hi,
When the entity has OneToOne Relationship,the version is not getting updated when the child gets updated
Whereas version is getting updated only on the parent update.
For example
Customer and Order in which “Customer“ has one to one relationship with “Order” (unidirectional)
Version is maintained at parent level.
When there is change in Order data,the version in parent is not updated even i pass the whole parent data with child for entitymanager.merge
please help me on this or suggest me some alternative way if my approach is not correct
|