Spring 5与Hibernate 3

huangapple go评论76阅读模式
英文:

Spring 5 with hibernate 3

问题

我有点困惑应该使用哪个Hibernate版本。

我们有一个应用程序,目前正在使用Spring 3和Hibernate 3。我们需要将其迁移到Spring 5.2.6,但我不确定是否可以保持Hibernate版本不变,还是应该升级。我知道Spring中有许多改变,可能与当前的Hibernate版本不兼容。

你能给我提些建议吗?

英文:

I am little bit confused what hibernate version shall i use.

We have an application which currently using Spring 3 and Hibernate 3. We have to migrate it to Spring 5.2.6, but i am not sure if we can keep the hibernate version same or shall we upgrade. I know there are so many things changed in Spring which may not compatible with current hibernate version.

Can you please suggest me on this?

答案1

得分: 3

根据文档

从Spring Framework 5.0开始,Spring需要Hibernate ORM 4.3或更高版本来支持JPA,并且甚至需要Hibernate ORM 5.0+来进行与本机Hibernate Session API的编程。请注意,Hibernate团队不再维护5.1之前的任何版本,并且可能很快专注于仅使用5.3+版本。

因此,我建议您在5.4 分支 中使用最新的稳定版本。

英文:

According to the documentation:

> As of Spring Framework 5.0, Spring requires Hibernate ORM 4.3 or later for JPA support and even Hibernate ORM 5.0+ for programming against the native Hibernate Session API. Note that the Hibernate team does not maintain any versions prior to 5.1 anymore and is likely to focus on 5.3+ exclusively soon.

So, I would suggest you to use the latest stable version in the 5.4 branch.

huangapple
  • 本文由 发表于 2020年8月10日 16:32:55
  • 转载请务必保留本文链接:https://go.coder-hub.com/63336730.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定