Quote:
Is this behaviour desired and what are the reasons for this.
From my experience it is Hibernates 'write-behind' mechanism that works in this way.
When persisting a new object, an insert-event is queued with objects' snapshot of that moment of persisting.
Further changes on that object are then propagated with an update-event.
Quote:
Is this behaviour desired and what are the reasons for this.
I assume it's desired, but unfortunately I don't know the reasons behind.
(In order to avoid the update, I already fill all properties with the final values before persisting the new object.)