I have a simple parent-chid relationship with a <list>. The order inside the list is managed from the containing entity with "insert=false update=false" in the contained entity. As stated in the docs I've used cascade="all,delete-orphan", as this is a strict parent-child relationshp.
This works ok. The problem is that when I call "session.update()" on the containing entity, every contained object flushes itself to the connection, even when I haven't touched it.
I think this is ageneral problem with update(), it seems to always dirty what it touches.
(The contained entity has a proper pair of equals and hashCode method.)
I'd appreciate any help. Thanks!
|