Joined: Tue Dec 28, 2004 7:41 pm Posts: 7
|
Hibernate version:
3.1
Annotations 3.1 beta 6
Name and version of the database you are using:
MySql 4.1.14-standard
I have a two entities that share a one-to-many bi-directional relationship. When I do a simple find by ID on the entity on the many side, once my transaction commits I notice not only the select for the entity on the many side but an update for the other entity. No where in my code am I saving or updating the object. If I specify the annotiation fetch type as eager or lazy then the update statement doesn't happen.
After explicitly setting all my fetch types there is still a situation that causes the update to occur but I haven't pinpointed the culprit yet. What would cause hibernate to generate an update statement when neither a save or update occurs in the transaction?
|
|