1. Interceptor.onFlushDirty - Getting only changed properties forum.hibernate.orgNewbie Joined: Thu Oct 07, 2010 11:19 am Posts: 5 In order to get the dirty properties to the onFlashDirty, perform the next steps: 1) Extend the DefaultFlushEntityEventListener as follows: Code: public class FlushEntityEventListenerDelegator |
2. Setting a Property in an Interceptor forum.hibernate.orgWith an interceptor I'm trying to set a property of a persistent class, just before it's save or updated. Unfortu-nately the property I'm setting in the interceptor isn't written to the DB. My Code looks as following: Code: public boolean onFlushDirty(Object entity, Serializable id, Object[] state, ... |
3. Interceptor onFlushDirty- properties & values [] out of forum.hibernate.orgHello: I am using Hibernate Interceptor for audit logging purpose. In onFlushDirty() I am comparing oldValues[] and newValues[] to detect any change in the values. Then I noticed that the index of properties[] and the values [] (oldvaues and newValues) are not in sync. Let me give an example. I have an entity called Employee with fields name, employeeNumber and age. ... |
4. Problem: Collection properties modification in Interceptor. forum.hibernate.orgAuthor Message Vladislav Post subject: Problem: Collection properties modification in Interceptor. Posted: Tue Mar 06, 2007 12:55 pm Newbie Joined: Tue Mar 06, 2007 10:38 am Posts: 1 I want to give certain permission for the logged user on some entities on their creation. I am trying to use an Interceptor to add Permission object for the current user ... |