Event « Interceptor « JPA Q&A





1. Hibernate: Event Listener or Interceptor, what are the pros/cons in practice?    stackoverflow.com

I will be implementing a feature to update an id in a table after Hibernate does my deletes. But I want to get some feedback on which approach is better. Also ...

2. JPA interceptor / event listener that doesn't fire with Hibernate    stackoverflow.com

@PostLoad 
public void initThing() { ... }
I added that to my entity but it seems on the entity load it's not called... I use jpa on a spring context without EJB Hibernate ...

3. Event/Listener or Interceptor for "Session Closed"    forum.hibernate.org

We use the open-session-in-view pattern, however we are running across very infrequent errors where we attempt to access a Session that has already been closed. I wont go into details - probably involves misconfiguration of our servlet filters. To troubleshoot this kind of thing, it would be helpful if Hibernate provided a "session-closed" event type and listener. An interceptor would work ...

4. Event Listeners (or Interceptor) with non-entity?    forum.hibernate.org

Hibernate version: 3.0.5 Mapping documents: (Snippet): Code: ...