Skip to content

Upgrading org.hibernate:hibernate-core 6 to 7

Breaking6.6.59.Final → 7.4.14.FinalBreaking3Platform1New12Changed5

Fetching 122 releases from GitHub…121 / 122
BreakingUpgrade verdict

3 breaking changes and a platform requirement change.

  • Many old APIs and behaviors that were marked deprecated have been removed, so code using them will break.
  • The library now uses a newer version of the Jakarta Persistence standard, which may require changes to your code.
  • Many classes have moved to new packages, so imports may need updating.
  • You now need Java 17 or newer to use this library; older versions needed only Java 11.
4 items need code or config changes

org.hibernate:hibernate-core publishes official migration guides for versions 7, 7. They cover more than the release notes do.

Migration Guide ↗Migration Guide ↗
Breaking3
Removes a lot of deprecated contracts and behavior.
Migrates to Jakarta Persistence 3.2, which can be fairly disruptive.
Reorganizes many packages according to the compatibility policy in preparation for 7.0 Final.
Platform1
Baselines on Java 17 because Jakarta Persistence 3.2 requires it, up from Java 11.