onFlushDirty « Update « JPA Q&A





1. SQL update runs but not onFlushDirty    forum.hibernate.org

I have a detached object that I am performing a session.saveOrUpdate with. An update statement runs but the associated Interceptor onFlushDirty method does not get invoked. Does anyone know of any conditions where this behavior makes sense? My current thinking is that anytime that Hibernate executes an update statement, onFlushDirty should fire. I do realize that the data onFlushDirty receives is ...

2. Save only change propertys onFlushDirty    forum.hibernate.org

rmonie Post subject: Posted: Sun Aug 07, 2005 4:13 am Newbie Joined: Tue May 24, 2005 7:08 pm Posts: 17 Location: Melbourne You should be using the newValues / oldValues array rather than the properties array. Having said that, I believe there are still bugs in the interceptor, especially when it comes to capturing updates. It has been suggested ...