instance « Interceptor « JPA Q&A





1. Is it possible to get the instance of an Interceptor? v 2.1    forum.hibernate.org

Hibernate version: 2.1.6 Name and version of the database you are using: Oracle 9i Hi folks, I've resently started using the "long sessions" pattern (Hibernate in Action - page 326) in my servlets. I'm using the HibernateUtil class and have implemented the servlet filter as described. All is well! However, I have a slight issue. I use an Interceptor to create ...

2. How to use EJB3 with a custom Hibernate interceptor instance    forum.hibernate.org

I need to use a custom Hibernate Interceptor in an EJB3 environment, and by custom, I mean an Interceptor I have instantiated myself as it needs to be linked to other application objects (this means declaring the interceptor type an let Hibernate instantiate it is not a solution here). I actually use EntityManager 3.3.1 associated with Spring 2.5. With plain Hibernate, ...

3. Persisting associated instances from within interceptor    forum.hibernate.org

Author Message jonigkeit Post subject: Persisting associated instances from within interceptor Posted: Fri Jun 13, 2008 10:35 am Newbie Joined: Thu Dec 21, 2006 7:30 am Posts: 11 Hibernate version:3.1.3 Hi - I have a little trouble with persisting objects. I have an interceptor in which I want, based on the state of the object passed in onFlushDirty, to ...

4. Interceptor instanciated instances do not have an id    forum.hibernate.org

/** * give the interceptor an opportunity to override the default instantiation */ public Object instantiate(EntityPersister persister, Serializable id) throws HibernateException { errorIfClosed(); checkTransactionSynchStatus(); Object result = interceptor.instantiate( persister.getEntityName(), ...