query « Interceptor « JPA Q&A





1. Interceptor query regarding the propertynames, states args    forum.hibernate.org

Hi, I am new to Hibernate and have a query. In the methods onSave, onLoad, onDelete propertyNames and states are passed as args to the method. I was wondering if propertyNames always contains all the properties of the operated object or only the properties for whom the state has changed during the transaction? There is also a method onFlushDirty. Here also ...

2. Hibernate interceptor query    forum.hibernate.org

I am trying to enable audit log in my application using interceptor. I tried the following approach to get the hibernate current session. Code: public class ExtendedThreadLocalSessionContext extends ThreadLocalSessionContext { public ExtendedThreadLocalSessionContext(SessionFactoryImplementor factory) { super(factory); System.out.println("ExtendedThreadLocalSessionContext==>>"); ...