Description
weixing_zou opened SPR-8940 and commented
I can assign entityInterceptor and eventListeners to org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean, but there is no class org.springframework.orm.hibernate4.annotation.AnnotationSessionFactoryBean, and for org.springframework.orm.hibernate4.LocalSessionFactoryBean, there is no property entityInterceptor and eventListeners.
Then how can I upgrade to Hibernate 4 with Spring 3.1 under this situation?
For example:
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
<property name="dataSource" ref="dataSource" />
<property name="entityInterceptor" ref="entityInterceptor" />
<property name="eventListeners">
<map>
...
</map>
</property>
</bean>
Affects: 3.1 GA
Issue Links:
- support for hibernate interceptor for hibernate4 with spring3.1 [SPR-8980] #13620 support for hibernate interceptor for hibernate4 with spring3.1
- Unable to register hibernate event listeners against orm.hibernate4's LocalSessionFactoryBean [SPR-9381] #14017 Unable to register hibernate event listeners against orm.hibernate4's LocalSessionFactoryBean
Referenced from: commits 23a941d, eb31528
8 votes, 12 watchers