I tried to migrate our project from Hibernate 3 + Spring to Hibernate 4 + Spring.
It seems that is not possible to link an entity interceptor.
Code:
<!-- HIBERNATE 3 (WORK) -->
<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory" ref="projectSessionFactory"/>
<property name="entityInterceptor">
<bean class="com.industry.domain.interceptors.myInterceptor"/>
</property>
</bean>
<!-- HIBERNATE 4 (NOT WORK) -->
<bean id="transactionManager" class="org.springframework.orm.hibernate4.HibernateTransactionManager">
<property name="sessionFactory" ref="projectSessionFactory"/>
<property name="entityInterceptor">
<bean class="com.industry.domain.interceptors.myInterceptor"/>
</property>
</bean>
The project with hibernate 4 configuration doesn't start.
How can I proceed ?
Thanks in advance.