Upgrade Hibernate to 6.6

Apache 2.0

This recipe upgrades Hibernate to version 6.6, which is compatible with Jakarta EE 10 and JPA 3.1. It also upgrades a few of the commonly used Hibernate add-ons.

com.oracle.weblogic.rewrite.hibernate.UpgradeHibernateTo66
mod run . --recipe=com.oracle.weblogic.rewrite.hibernate.UpgradeHibernateTo66

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Migrate to Hibernate 6.6.x
  2. Change Gradle or Maven dependency org.hibernate:hibernate-ehcache
  3. Upgrade Gradle or Maven dependency versions org.hibernate.search:*:6.6.x
  4. Upgrade Gradle or Maven dependency versions org.hibernate.validator:*:6.6.x