borko
Aug 17th, 2004, 08:57 AM
Hi,
When I use HibernateTransactionManager I get session without entityInterceptor,
no entityInteceptor on HibernateTransactionManager or SessionFactory.
Calls in my DAO class (which is subclass of HibrenateDaoSupport) use hibernateTemplate
with enitityInreceptor(session level Interceptors), but session is unaware of that interceptor.
HibernateTempalte ht = getHibernateTemplate();
ht.setEntityInterceptor(auditLogInterceptor);
ht.saveOrUpdate(jci);
I presume that calls are on session (provided by TM), and
any hibernateTemplate calls in transaction will use this session.
Is there any possibility to "turn on" (or off, if configured) entityInterceptor on this session?
When I use HibernateTransactionManager I get session without entityInterceptor,
no entityInteceptor on HibernateTransactionManager or SessionFactory.
Calls in my DAO class (which is subclass of HibrenateDaoSupport) use hibernateTemplate
with enitityInreceptor(session level Interceptors), but session is unaware of that interceptor.
HibernateTempalte ht = getHibernateTemplate();
ht.setEntityInterceptor(auditLogInterceptor);
ht.saveOrUpdate(jci);
I presume that calls are on session (provided by TM), and
any hibernateTemplate calls in transaction will use this session.
Is there any possibility to "turn on" (or off, if configured) entityInterceptor on this session?