entity « Interceptor « JPA Q&A





1. Use of Entity Interceptor is unclear    forum.hibernate.org

Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: 2.1.2 Mapping documents: ... When I try to save a MasqueTO Object, ...

2. Interceptor: onFlushDirty() multiple call on same entity    forum.hibernate.org

Hello, I'm trying to log each update on set of 35 entities by using onFlushDirty(). Also using onDelete() and onSave() which are working fine. But onFlushDirty() getting executed multiple time (3 to 4 time). Can anybody please help me find out why? LifeCycle methods requires implementing in each entity which is really tedious. So can anyone help me figure-out other way ...