Hi All,
I have 3 objects. Object A,B,C.
A and C is of same type with diff ids.
A and B are associated with each other. A has one-to-one unidirectional association with B. At association level i have mentioned Cascade.ALL. So when i save A, 1st B is saved and den A is saved. Now When i save C, which is associated with B which is already saved in DB, i expect there should be one insert of C, but i can see update statement is getting fired on B, although no attribute of B has changed.
I dont want these unnecessary updates. Can any1 please help?
|