Spring 4.3.0.RELEASE, Hibernate 5.0.9.Final, missing SessionFactoryImplementor.getProperties method

I am using Spring 4.3.0.RELEASE along with Hibernate 5.0.9.Final in my application and I keep getting

java.lang.NoSuchMethodError: org.hibernate.engine.spi.SessionFactoryImplementor.getProperties()Ljava/util/Map; 

If I update Hibernate 5.2.0.Final, everything will be fine. Looks like Spring 4.3.0 is not compatible with Hibernate 5.0, is that correct? I could not find anything about Hibernate 5.0 support.

In Hibernate 5.2, such a method exists, in Hibernate 5.0 this method does not yet exist (just replace 5.2 with 5.0 in the URL): http://docs.jboss.org/hibernate/orm/5.2/javadocs/org/hibernate/engine/spi /SessionFactoryImplementor.html

I created a simple projector: https://github.com/trepel/spring43-hibernate50-error

Thanks for all your answers.

+7
spring hibernate spring-4
source share
1 answer

There is already an SPR-14365 issue covering this.

+4
source share

All Articles