英文:
Hibernate Search upgrade for JDK-17 and Jakarta Persistence APIs
问题
我们正在尝试进行JDK-17迁移。其中的一项步骤是从javax.persistence迁移到jakarta.persistence库。
看起来Hibernate搜索还没有升级到Jakarta Persistence。您能否请分享一下是否在将来的版本中计划进行此升级,或者是否有其他替代方案。
请注意,我们已尝试了6.1.8.Final和6.2.0.Alpha1版本。
提前感谢您。
英文:
We are experimenting with JDK-17 migration. One of the steps was to migrate from javax.persistence to jakarta.persistence libraries.
Looks like Hibernate search is yet to upgrade to Jakarta Persistence. Could you please share if this is planned in future releases. or any alternatives.
Please be informed that we have tried with both 6.1.8.Final & 6.2.0.Alpha1 versions.
Thanks in advance
答案1
得分: 2
Hibernate Search 6.1+可以与Jakarta Persistence和/或Hibernate ORM 6一起使用,但您需要切换到不同的Maven构件:
- Hibernate ORM 6的构件后缀为
-orm6
:https://docs.jboss.org/hibernate/search/6.1/reference/en-US/html_single/#other-integrations-orm6 - Hibernate ORM 5的
-jakarta
构件后缀为-jakarta
:https://docs.jboss.org/hibernate/search/6.1/reference/en-US/html_single/#other-integrations-jakarta
还可以参考https://hibernate.org/search/releases/#compatibility-matrix
Hibernate Search 7+将默认使用Hibernate ORM 6+,在主要构件中不需要-orm6
后缀。
英文:
Hibernate Search 6.1+ does work with Jakarta Persistence and/or Hibernate ORM 6, but you have to switch to different Maven artifacts:
- Artifacts suffixed with
-orm6
for Hibernate ORM 6: https://docs.jboss.org/hibernate/search/6.1/reference/en-US/html_single/#other-integrations-orm6 - Artifacts suffixed with
-jakarta
for Hibernate ORM 5's-jakarta
artifacts: https://docs.jboss.org/hibernate/search/6.1/reference/en-US/html_single/#other-integrations-jakarta
See also https://hibernate.org/search/releases/#compatibility-matrix
Hibernate Search 7+ will use Hibernate ORM 6+ out of the box, in the main artifacts (no -orm6
suffix needed).
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论