1. Interceptor.onFlushDirty() is being called for inserts forum.hibernate.orgNewbie Joined: Wed Oct 27, 2010 11:13 am Posts: 5 Hello- My interceptor's onFlushDirty() method is being invoked even for newly created entities. My understanding is onSave() is for inserts and onFlushDirty() for updates. Any pointers will be highly appreciated. Thanks. Code: public class AuditLogInterceptor extends EmptyInterceptor { /** * ... |
2. recursion using Interceptor.onFlushDirty() forum.hibernate.orgI tried to use an Interceptor to create protocol objects for changes made on persistent objects. Each protocol object maps the change of the state of a single property of the persistent object. Creating the protocol objects works very well with the Interceptor. Now I want to store the protocol objects to the database with session.save(protocol object) in onFlushDirty(). This causes ... |
3. Interceptor.onFlushDirty not called forum.hibernate.org |
4. Interceptor.onFlushDirty called twice forum.hibernate.org |
5. Interceptor onFlushDirty() forum.hibernate.orgHibernate version: 2.1.7 Mapping documents: |
6. Interceptor and mutiple calls onFlushDirty forum.hibernate.org |