Code:
<!-- Transaction manager for a single Hibernate SessionFactory (alternative to JTA) -->
<!-- Hibernate Transaction Manager -->
<bean id="myTransactionManager" class="org.springframework.orm.hibernate.HibernateTransactionManager">
<property name="sessionFactory">
<ref local="mySessionFactory"/>
</property>
<property name="entityInterceptor">
<ref local="lobCleanUpInterceptor"/>
</property>
</bean>
In my DAO implementation:
public void updateProcess (Object dp) {
Interceptor e = getHibernateTemplate().getEntityInterceptor();
getHibernateTemplate().saveOrUpdate(dp); // does not update fields.
}
The Interceptor e is null and saveOrUpdate does not update the values??
Not sure what is happening.. Any help is appreciated.