Another Good Guy
Another Good Guy

Reputation: 90

Hibernate Search upgrade for JDK-17 and Jakarta Persistence APIs

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

Upvotes: 1

Views: 3769

Answers (1)

yrodiere
yrodiere

Reputation: 9977

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

Upvotes: 2

Related Questions