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

1

7

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

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

If I update the Hibernate 5.2.0.Final, everything works fine. It seems that Spring 4.3.0 is not compatible with Hibernate 5.0, is that correct ? I was not able to find anything about not supporting Hibernate 5.0.

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

I have created simple reproducer: https://github.com/trepel/spring43-hibernate50-error

Thanks for all your replies.

Timberwork answered 16/6, 2016 at 13:42 Comment(2)
See jira.spring.io/browse/SPR-14365Changchun
Thanks @M.Deinum, so it's a bug and new Jira ticket has been filed. If you create real answer, I will accept it.Timberwork
C
4

There is already an issue, SPR-14365, covering that.

Changchun answered 17/6, 2016 at 16:22 Comment(2)
I am using spring 4.3.1.RELEASE and hibernate 5.2.1.Final but still i am facing same issue.Ostmark
This Jira item is closed and it sounds like it was fixed, but with the Maven artifact org.springframework.boot:spring-boot-dependencies:1.4.2.RELEASE which is the latest the problem still exists.Mackenzie

© 2022 - 2024 — McMap. All rights reserved.