简体   繁体   English

Hibernate 4 与 Java 11 兼容吗?

[英]Is Hibernate 4 compatible with Java 11?

I have already read on documents saying that Hibernate version 5 is compatible with Java 11. but我已经阅读过文档说 Hibernate 版本 5 与 Java 11 兼容。但是

  • Is Hibernate ORM version 4 also compatible with java version 11? Hibernate ORM 版本 4 是否也与 java 版本 11 兼容?
  • if not, what changes are needed to be done?如果没有,需要做哪些改变?

Hibernate 4 is not compatible with Java 11 and was declared for quite some years now as ” end-of-life “, practically since end of 2015. Hibernate 4 与 Java 11兼容,并且从 2015 年底开始实际上已经被宣布为“生命终结”已有好几年了。

Full Java 11 support was announced with Hibernate version 5.4 : Hibernate 5.4宣布了对 Java 11 的全面支持:

Hibernate ORM now supports JDK 11 out of the box. Hibernate ORM 现在支持开箱即用的 JDK 11。

Hibernate 5.3 lists Java 11 as supported in the latest release 5.3.22. Hibernate 5.3列出了最新版本 5.3.22 支持的 Java 11。 Moreover, Hibernate 5.6 is also Java 11 compatible.此外, Hibernate 5.6还兼容 Java 11。 This might be the last version in the javax namespace, yet it supports the transition to the new jakarta namespace.这可能是javax命名空间中的最后一个版本,但它支持转换到新的jakarta命名空间。

Pointers on what changed or needs changes in your project are found via this question or in my answer to a similar question, related to migration from version 4.3 to version 5.2.通过此问题或我对与从版本 4.3 迁移到版本 5.2 相关的类似问题的回答中可以找到有关项目中发生了什么变化或需要更改的指针。 Many things in that answer should guide you along the path.该答案中的许多内容应该会指导您前进。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM