Skip to content

How can Spring 3.1 support hibernate 4 such as support Hibernate 3? [SPR-8940] #13580

Closed
@spring-projects-issues

Description

@spring-projects-issues

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:

Referenced from: commits 23a941d, eb31528

8 votes, 12 watchers

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions