Hello,
I have a scenario where I have two objects linked by a many-to-one-relationship and the other way by a one-to-many relationship.
T -> B: one-to-many B->T: many-to-one.
The problem I am encountering is that when T is updated, an update statement is also run for B. Which is necessary sometimes because users can change one of B's properties by accessing T. However, this update statement for B is happening ALL THE TIME even when B's one property is not updated, furthermore the update statement for B is running on all fields even when none of the underlying data has been changed.
The unnecessary updates are greatly affecting performance.
I have tried setting dynamicupdate=true on B's class and have been looking through forums, but have found nothing useful.
Any help would be greatly appreciated.
Thanks, Marise
|