Force update in Hibernate
Posted
by gubrutz
on Stack Overflow
See other posts from Stack Overflow
or by gubrutz
Published on 2010-03-03T09:36:55Z
Indexed on
2010/05/08
18:38 UTC
Read the original article
Hit count: 217
How can I force Hibernate to update an entity instance even if the entity is not dirty? I'm using Hibernate 3.3.2 GA, Hibernate Annotations and Hibernate EntityManager btw. I really want Hibernate to execute the generic UPDATE statement even if no property on the entity has changed.
I need this because some event listeners need to get invoked to do some additional work when the application runs for the first time.
Thanks!
© Stack Overflow or respective owner