Spring 4.3.0.RELEASE,Hibernate 5.0.9.Final,缺少SessionFactoryImplementor.getProperties方法 [英] Spring 4.3.0.RELEASE, Hibernate 5.0.9.Final, missing SessionFactoryImplementor.getProperties method

查看:328
本文介绍了Spring 4.3.0.RELEASE,Hibernate 5.0.9.Final,缺少SessionFactoryImplementor.getProperties方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将Spring 4.3.0.RELEASE与Hibernate 5.0.9.Final一起用于我的应用程序,并且不断收到

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

如果我更新Hibernate 5.2.0.Final,一切正常。看来Spring 4.3.0与Hibernate 5.0不兼容,这是否正确?我无法找到任何关于不支持Hibernate 5.0的内容。



在Hibernate 5.2中,存在这样的方法,在Hibernate 5.0中该方法尚不存在(只需将5.2在URL中为5.0):
http:// docs.jboss.org/hibernate/orm/5.2/javadocs/org/hibernate/engine/spi/SessionFactoryImplementor.html



我创建了简单的复制器:
https://github.com/trepel/spring43-hibernate50-error



感谢您的回复。 解决方案

=https://jira.spring.io/browse/SPR-14365 =nofollow> SPR-14365 ,涵盖了这一点。


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.

解决方案

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

这篇关于Spring 4.3.0.RELEASE,Hibernate 5.0.9.Final,缺少SessionFactoryImplementor.getProperties方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆