---
title: "org.hibernate:hibernate-core 7.0.0.Final Breaking Changes"
description: "What each org.hibernate:hibernate-core release removed, renamed or changed: 55 breaking changes in 2 versions on Maven Central, each with its source."
canonical_url: https://since.dev/packages/maven/org.hibernate:hibernate-core
last_updated: 2026-12-04
---

# org.hibernate:hibernate-core breaking changes

org.hibernate:hibernate-core 7.0.0.Final (May 19, 2025) is its newest release with breaking changes, 47 of them. The first: Built-in Vibur, Proxool and UCP connection pool support dropped in org.hibernate:hibernate-core 7.0.0.Final. Every breaking API change we have recorded in org.hibernate:hibernate-core on Maven Central: 55 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `7.4.17.Final`. The registry marks it deprecated: Relocated to org.hibernate.orm:hibernate-core 8.0.0.Beta1.. 

Its 7.0.0.Final release requires [Java 17](https://since.dev/calendar/eclipse-temurin/17.md) or later. [Java end of life dates](https://since.dev/calendar/eclipse-temurin.md).

- From [7.0.0.Beta3](#v-7-0-0-Beta3) to [7.0.0.Final](#v-7-0-0-Final): 47 breaking changes in 1 version.

## org.hibernate:hibernate-core 7.0.0.Final breaking changes

org.hibernate:hibernate-core 7.0.0.Final, released May 19, 2025: 47 breaking changes.

- **Removed**  

Built-in support for these connection pools was removed; use Agroal, HikariCP or your own ConnectionProvider. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Removed** `@IndexColumn`  

Use the JPA @OrderColumn instead. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Removed** `@LazyCollection`  

The @LazyCollection annotation was removed. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Removed** `@OrderBy`  

Use @SQLOrder or the JPA @OrderBy instead. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Removed** `@Persister`  

The @Persister annotation was removed with no replacement named. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Removed** `@Proxy`  

Remove @Proxy; use Session#find, eager fetching, EntityGraph or @FetchProfile instead. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Removed** `@Table`  

Hibernate's @Table was removed; use the JPA @Table annotation. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Removed** `@Target`  

Use @TargetEmbeddable, which applies only to @Embedded or @ElementCollection members. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Removed** `@Where`  

Use @SQLRestriction or @SQLJoinTableRestriction instead. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Removed** `EmptyInterceptor`  

Implement Interceptor directly, since its methods are now default methods. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Removed** `Integrator.integrate`  

The previously deprecated integrate overload was removed; use the BootstrapContext version. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Removed** `Interceptor.onLoad`  

Previously deprecated Interceptor methods were removed in favor of their replacements with Object identifiers. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Removed** `NaturalIdLoadAccess.using`  

Removed in favor of Map#of(). [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Removed** `org.hibernate.annotations.CascadeType.DELETE`  

CascadeType DELETE was removed in favor of REMOVE. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Removed** `org.hibernate.annotations.CascadeType.SAVE_UPDATE`  

SAVE_UPDATE was removed in favor of PERSIST and/or MERGE. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Removed** `org.hibernate.Metamodel`  

Use org.hibernate.metamodel.model.domain.JpaMetamodel instead. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Removed** `Query.setOrder`  

Query#setOrder was removed; use QuerySpecification instead. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Removed** `Session.delete`  

Session#delete methods were removed; use Session#remove. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Removed** `Session.load`  

Session#load was removed in favor of Session#getReference, which has the same semantics. Replace calls to load with getReference. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Removed** `Session.LockRequest`  

Use LockOptions instead. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Removed** `Session.refresh`  

The refresh overload taking an entity name was removed; pass the entity object alone. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Removed** `Session.save`  

All forms of Session#save were removed; use Session#persist. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Removed** `Session.saveOrUpdate`  

Session#saveOrUpdate was removed; use persist for transient entities or merge for detached ones. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Removed** `Session.update`  

All forms of Session#update were removed; use Session#merge. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Removed** `TeradataDialect`  

The TeradataDialect was removed from Hibernate ORM. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Renamed**  

The plugin's groupId and artifactId changed; update the pom to use hibernate-maven-plugin under org.hibernate.orm. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Behavior changed**  

Add explicit cascade=PERSIST to association fields annotated @Id or @MapsId that relied on the old automatic behavior. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Behavior changed**  

Date/time columns from native queries now return java.time types; set hibernate.query.native.prefer_jdbc_datetime_types to true for the old java.sql types. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Behavior changed**  

AttributeConverters on @Id, @Version, @Enumerated, @Embedded, @Temporal or association attributes now fail; use @Convert(disableConversion=true) for auto-applied converters. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Behavior changed**  

Hibernate ORM 7.0 requires Java 17 or greater. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Behavior changed**  

Standalone applications relying on classpath entity scanning must add the hibernate-scan-jandex dependency. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Behavior changed**  

Cascading persist to a detached associated instance now throws EntityExistsException; merge the detached instance first. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Behavior changed** `createQuery`  

Potentially ambiguous queries without a select list and no explicit result type are no longer accepted; pass a result type. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Behavior changed** `Criteria Path.get`  

Use CriteriaBuilder#treat to downcast the path before accessing a subtype attribute by name. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Behavior changed** `hibernate.jdbc.batch_size`  

The batch size setting has no effect on StatelessSession; use insertMultiple, updateMultiple or deleteMultiple, or setJdbcBatchSize. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Behavior changed** `LockAcquisitionException`  

Code catching PessimisticLockException will now also catch LockAcquisitionException. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Behavior changed** `Session.find`  

Refreshing or locking a detached entity now throws IllegalArgumentException, and hibernate.allow_refresh_detached_entity was removed. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Behavior changed** `SessionFactory.getName`  

JNDI binding now requires explicit configuration; use hibernate.session_factory_jndi_name or set hibernate.session_factory_name_is_jndi to true. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Behavior changed** `StatelessSession`  

To bypass the second-level cache as before, call setCacheMode(CacheMode.IGNORE). [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Default changed**  

Java float and double now map to binary_float and binary_double on Oracle; set hibernate.dialect.oracle.use_binary_floats to false to keep the old types. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Default changed**  

The Maven enhancement plugin defaults changed from true to false; set both explicitly and use the new artifact coordinates. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Default changed**  

Schema export maps char and Character fields to varchar(1) instead of char(1). [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Default changed** `hibernate.query.immutable_entity_update_query_handling_mode`  

Update and delete queries affecting immutable entities now throw by default; set the mode to allow to restore the old behavior. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Default changed** `hibernate.type.preferred_array_jdbc_type`  

Arrays now map to XML_ARRAY or JSON_ARRAY instead of VARBINARY; set hibernate.type.preferred_array_jdbc_type to VARBINARY to keep the old mapping. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Configuration changed**  

The setting that allowed legacy detached-entity refresh was removed. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Configuration changed**  

The hibernate.mapping.precedence setting and related settings were removed. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)
- **Signature changed** `Transaction.getTimeout`  

JPA 3.2 changed the return type to Integer, so direct unboxing comparisons may throw NullPointerException. [docs.jboss.org](https://docs.jboss.org/hibernate/orm/7.0/migration-guide/migration-guide.html)

## org.hibernate:hibernate-core 7.0.0.Beta3 breaking changes

org.hibernate:hibernate-core 7.0.0.Beta3, released May 19, 2025: 8 breaking changes.

- **Removed**  

A lot of deprecated contracts and behavior has been removed; consult the migration guide for affected APIs. [github.com](https://github.com/hibernate/hibernate-orm/releases/tag/7.0.0.Beta3)
- **Removed** `org.hibernate.annotations.common`  

Hibernate Commons Annotations is replaced by the Hibernate Models project for reading annotations and XML mappings. [github.com](https://github.com/hibernate/hibernate-orm/releases/tag/7.0.0.Beta3)
- **Renamed**  

Many packages were reorganized ahead of the 7.0 Final release; imports may need updating. [github.com](https://github.com/hibernate/hibernate-orm/releases/tag/7.0.0.Beta3)
- **Behavior changed**  

Hibernate 7.0 migrates to Jakarta Persistence 3.2. Review the migration guide for the required changes. [github.com](https://github.com/hibernate/hibernate-orm/releases/tag/7.0.0.Beta3)
- **Behavior changed** `@AnyDiscriminatorImplicitValues`  

Historically Hibernate used the full entity name as the implicit discriminator value; this can now be changed. [github.com](https://github.com/hibernate/hibernate-orm/releases/tag/7.0.0.Beta3)
- **Behavior changed** `@Basic`  

Illegal annotation combinations such as @Basic and @ManyToOne on the same attribute are now rejected. Fix such mappings. [github.com](https://github.com/hibernate/hibernate-orm/releases/tag/7.0.0.Beta3)
- **Configuration changed**  

Hibernate 7.0 requires Java 17; applications on Java 11 must upgrade their runtime. [github.com](https://github.com/hibernate/hibernate-orm/releases/tag/7.0.0.Beta3)
- **Configuration changed**  

Mapping files should use the new extended namespace; legacy hbm.xml must be transformed with the provided tool. [github.com](https://github.com/hibernate/hibernate-orm/releases/tag/7.0.0.Beta3)

## Related packages

- [org.hibernate:hibernate-c3p0](https://since.dev/packages/maven/org.hibernate:hibernate-c3p0.md)
- [org.hibernate:hibernate-envers](https://since.dev/packages/maven/org.hibernate:hibernate-envers.md)
- [org.hibernate:hibernate-jpamodelgen](https://since.dev/packages/maven/org.hibernate:hibernate-jpamodelgen.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
