Hibernate version: 3
Hello,
Here is the problem I'm having:
- A have an object A that contains a list of objects B.
- Object B has a date field which is defined in the mapping xml like so:
Code:
<timestamp name="lastUpdate" column="last_update"/>
- If I retrieve object A through hibernate, and then browse its objects B by calling a.getBs().iterator(), update another field of object A and finally save A, hibernate will update the last_update field of all the related object B!
I do not want that! Why does Hibernate update this field when all I did was browse through the B objects without updating them? Actually the simple call to iterator() will cause this.
Hope anyone can help...
Thanks