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
On this page
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 or later. Java end of life dates.
- From 7.0.0.Beta3 to 7.0.0.Final: 47 breaking changes in 1 version.
org.hibernate:hibernate-core 7.0.0.Final breaking changes
- Removed
Built-in support for these connection pools was removed; use Agroal, HikariCP or your own ConnectionProvider. docs.jboss.org - Removed
@IndexColumn
Use the JPA @OrderColumn instead. docs.jboss.org - Removed
@LazyCollection
The @LazyCollection annotation was removed. docs.jboss.org - Removed
@OrderBy
Use @SQLOrder or the JPA @OrderBy instead. docs.jboss.org - Removed
@Persister
The @Persister annotation was removed with no replacement named. docs.jboss.org - Removed
@Proxy
Remove @Proxy; use Session#find, eager fetching, EntityGraph or @FetchProfile instead. docs.jboss.org - Removed
@Table
Hibernate's @Table was removed; use the JPA @Table annotation. docs.jboss.org - Removed
@Target
Use @TargetEmbeddable, which applies only to @Embedded or @ElementCollection members. docs.jboss.org - Removed
@Where
Use @SQLRestriction or @SQLJoinTableRestriction instead. docs.jboss.org - Removed
EmptyInterceptor
Implement Interceptor directly, since its methods are now default methods. docs.jboss.org - Removed
Integrator.integrate
The previously deprecated integrate overload was removed; use the BootstrapContext version. docs.jboss.org - Removed
Interceptor.onLoad
Previously deprecated Interceptor methods were removed in favor of their replacements with Object identifiers. docs.jboss.org - Removed
NaturalIdLoadAccess.using
Removed in favor of Map#of(). docs.jboss.org - Removed
org.hibernate.annotations.CascadeType.DELETE
CascadeType DELETE was removed in favor of REMOVE. docs.jboss.org - Removed
org.hibernate.annotations.CascadeType.SAVE_UPDATE
SAVE_UPDATE was removed in favor of PERSIST and/or MERGE. docs.jboss.org - Removed
org.hibernate.Metamodel
Use org.hibernate.metamodel.model.domain.JpaMetamodel instead. docs.jboss.org - Removed
Query.setOrder
Query#setOrder was removed; use QuerySpecification instead. docs.jboss.org - Removed
Session.delete
Session#delete methods were removed; use Session#remove. docs.jboss.org - 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 - Removed
Session.LockRequest
Use LockOptions instead. docs.jboss.org - Removed
Session.refresh
The refresh overload taking an entity name was removed; pass the entity object alone. docs.jboss.org - Removed
Session.save
All forms of Session#save were removed; use Session#persist. docs.jboss.org - Removed
Session.saveOrUpdate
Session#saveOrUpdate was removed; use persist for transient entities or merge for detached ones. docs.jboss.org - Removed
Session.update
All forms of Session#update were removed; use Session#merge. docs.jboss.org - Removed
TeradataDialect
The TeradataDialect was removed from Hibernate ORM. docs.jboss.org - Renamed
The plugin's groupId and artifactId changed; update the pom to use hibernate-maven-plugin under org.hibernate.orm. docs.jboss.org - Behavior changed
Add explicit cascade=PERSIST to association fields annotated @Id or @MapsId that relied on the old automatic behavior. docs.jboss.org - 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 - 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 - Behavior changed
Hibernate ORM 7.0 requires Java 17 or greater. docs.jboss.org - Behavior changed
Standalone applications relying on classpath entity scanning must add the hibernate-scan-jandex dependency. docs.jboss.org - Behavior changed
Cascading persist to a detached associated instance now throws EntityExistsException; merge the detached instance first. docs.jboss.org - 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 - Behavior changed
Criteria Path.get
Use CriteriaBuilder#treat to downcast the path before accessing a subtype attribute by name. docs.jboss.org - 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 - Behavior changed
LockAcquisitionException
Code catching PessimisticLockException will now also catch LockAcquisitionException. docs.jboss.org - Behavior changed
Session.find
Refreshing or locking a detached entity now throws IllegalArgumentException, and hibernate.allow_refresh_detached_entity was removed. docs.jboss.org - 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 - Behavior changed
StatelessSession
To bypass the second-level cache as before, call setCacheMode(CacheMode.IGNORE). docs.jboss.org - 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 - Default changed
The Maven enhancement plugin defaults changed from true to false; set both explicitly and use the new artifact coordinates. docs.jboss.org - Default changed
Schema export maps char and Character fields to varchar(1) instead of char(1). docs.jboss.org - 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 - 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 - Configuration changed
The setting that allowed legacy detached-entity refresh was removed. docs.jboss.org - Configuration changed
The hibernate.mapping.precedence setting and related settings were removed. docs.jboss.org - Signature changed
Transaction.getTimeout
JPA 3.2 changed the return type to Integer, so direct unboxing comparisons may throw NullPointerException. docs.jboss.org
org.hibernate:hibernate-core 7.0.0.Beta3 breaking changes
- Removed
A lot of deprecated contracts and behavior has been removed; consult the migration guide for affected APIs. github.com - Removed
org.hibernate.annotations.common
Hibernate Commons Annotations is replaced by the Hibernate Models project for reading annotations and XML mappings. github.com - Renamed
Many packages were reorganized ahead of the 7.0 Final release; imports may need updating. github.com - Behavior changed
Hibernate 7.0 migrates to Jakarta Persistence 3.2. Review the migration guide for the required changes. github.com - Behavior changed
@AnyDiscriminatorImplicitValues
Historically Hibernate used the full entity name as the implicit discriminator value; this can now be changed. github.com - Behavior changed
@Basic
Illegal annotation combinations such as @Basic and @ManyToOne on the same attribute are now rejected. Fix such mappings. github.com - Configuration changed
Hibernate 7.0 requires Java 17; applications on Java 11 must upgrade their runtime. github.com - Configuration changed
Mapping files should use the new extended namespace; legacy hbm.xml must be transformed with the provided tool. github.com
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.