Joined: Wed May 17, 2006 8:26 am Posts: 8 Location: Amsterdam
|
Hibernate EntityManager version: 3.3.1
I have a question concerning Hibernate's EM guarantees with regard to entity lifecycle events.
While JPA guarantees that PrePersist and PreRemove lifecycle events take place before a flush, it doesn’t extend that guarantee to PreUpdate notifications. These PreUpdate notifications “may occur at the time the entity state is updated or they may occur at the time state is flushed to the database (which may be at the end of the transaction)”.
I would like to know whether Hibernate calls PreUpdate callbacks at the time when an entity is updated or defers that till state is flushed.
Many thanks in advance,
Andrei.
|
|