Hibernate Search 升级支持 JDK-17 和 Jakarta Persistence APIs。

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

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:

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).

huangapple
  • 本文由 发表于 2023年2月14日 21:43:57
  • 转载请务必保留本文链接:https://go.coder-hub.com/75448723.html
匿名

发表评论

匿名网友

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

确定