org.hibernate:hibernate-envers breaking changes
Updated December 4, 2026
On this page
Latest version 7.4.17.Final, released November 23, 2026. The registry marks it deprecated: Relocated to org.hibernate.orm:hibernate-envers 8.0.0.Beta1.. Source repository
Its 7.0.0.Final release requires Java 17 or later. Java end of life dates.
- From 7.0.0.Alpha1 to 7.0.0.Final: 81 breaking changes in 7 versions.
org.hibernate:hibernate-envers 7.0.0.Final breaking changes
- Removed
Built-in support for these pools is gone; use Agroal or HikariCP, or implement ConnectionProvider. docs.jboss.org - Removed
Several changes from 6.6 break existing code; see the migration guide for details. github.com - Removed
@Proxy
Replace usages with Session#find, eager fetching, EntityGraph, or FetchProfile. docs.jboss.org - Removed
@Target
Use the new @TargetEmbeddable annotation on embedded or element collection members. docs.jboss.org - Removed
EmptyInterceptor
Implement Interceptor directly, since its methods are now default methods. docs.jboss.org - Removed
Integrator.integrate
Implement the replacement integrate method that takes a BootstrapContext. docs.jboss.org - Removed
Interceptor.onSave
Methods such as onSave and onFlushDirty were removed in favor of their replacements that use Object identifiers. docs.jboss.org - Removed
NaturalIdLoadAccess.using
Use Map#of() to build the map instead. docs.jboss.org - Removed
org.hibernate.annotations.CascadeType.DELETE
Use CascadeType REMOVE instead. docs.jboss.org - Removed
org.hibernate.annotations.CascadeType.SAVE_UPDATE
Use PERSIST and/or MERGE in its place. docs.jboss.org - Removed
org.hibernate.Metamodel
Use JpaMetamodel from the domain package instead. docs.jboss.org - Removed
Query.setOrder
Use QuerySpecification instead of the removed incubating setOrder method. docs.jboss.org - Removed
Session.delete
Use Session#remove instead of the removed Session#delete methods. docs.jboss.org - Removed
Session.load
Session#load was removed in favor of Session#getReference, which has the same semantics. docs.jboss.org - Removed
Session.LockRequest
Use LockOptions instead. docs.jboss.org - Removed
Session.save
Use Session#persist instead of the removed Session#save methods. docs.jboss.org - Removed
Session.saveOrUpdate
Use Session#persist for transient entities or Session#merge for detached entities. docs.jboss.org - Removed
Session.update
Use Session#merge instead of the removed Session#update methods. docs.jboss.org - Behavior changed
createQuery
Queries with no select list passed to createQuery without a result type are no longer accepted; specify the select list or result type. docs.jboss.org - Behavior changed
hibernate.session_factory_name
SessionFactory name now comes from the persistence-unit name, and JNDI binding uses hibernate.session_factory_jndi_name. docs.jboss.org - Behavior changed
jakarta.persistence.criteria.Path.get
Call CriteriaBuilder#treat explicitly before accessing attributes defined on an inheritance subtype. docs.jboss.org - Behavior changed
Session.refresh
Refresh and lock on detached entities now throw IllegalArgumentException, as JPA requires. docs.jboss.org - Behavior changed
StatelessSession
Call setCacheMode(CacheMode.IGNORE) to bypass the second-level cache as before. docs.jboss.org - Default changed
enableLazyInitialization and enableDirtyTracking now default to false; set them to true explicitly. The plugin artifact coordinates also changed. docs.jboss.org - Default changed
char
Schema export now uses varchar(1) instead of char(1) for char and Character fields. docs.jboss.org - Default changed
hibernate.dialect.oracle.use_binary_floats
Default DDL for Java float and double on Oracle changed to binary_float and binary_double; existing columns need a multi-step migration, or set the flag to false. docs.jboss.org - Default changed
hibernate.query.immutable_entity_update_query_handling_mode
Update and delete queries affecting immutable entities now raise an exception unless the mode is set to allow. docs.jboss.org - Default changed
hibernate.query.native.prefer_jdbc_datetime_types
Native queries now return LocalDate, LocalTime and LocalDateTime; set the setting to true to get the previous java.sql types. docs.jboss.org - Default changed
timestamp
Oracle timestamps now default to precision 9 and SQL Server to precision 7, affecting generated DDL. docs.jboss.org - Configuration changed
The baseline is now Java 17, so applications on older Java versions must upgrade before using this release. docs.jboss.org - Configuration changed
Classpath entity scanning now needs the hibernate-scan-jandex dependency added to standalone applications. docs.jboss.org - Configuration changed
hibernate.allow_refresh_detached_entity
The setting that re-enabled legacy detached refresh is gone, so detached refresh is no longer possible. docs.jboss.org - Configuration changed
hibernate.jdbc.batch_size
Set the batch size with setJdbcBatchSize() or use insertMultiple, updateMultiple, or deleteMultiple. docs.jboss.org - Configuration changed
hibernate.type.xml_format_mapper.legacy_format
Existing XML data must be read and re-saved; set legacy_format to true to keep the old format. docs.jboss.org
org.hibernate:hibernate-envers 7.0.0.Beta5 breaking changes
- Removed
A lot of deprecated contracts and behavior has been removed; check the migration guide for replacements. github.com - Removed
Hibernate 7.0 baselines on Java 17 whereas previous versions baselined on Java 11, so applications must run on Java 17 or later. github.com
org.hibernate:hibernate-envers 7.0.0.Beta4 breaking changes
- Removed
Hibernate 7.0 baselines on Java 17 whereas previous versions baselined on Java 11, so applications must run on Java 17 or later. github.com - Removed
A lot of deprecated contracts and behavior has been removed; check the migration guide for replacements. github.com
org.hibernate:hibernate-envers 7.0.0.Beta3 breaking changes
- Removed
Hibernate 7.0 baselines on Java 17 whereas previous versions baselined on Java 11, so applications must run on Java 17 or later. github.com - Removed
A lot of deprecated contracts and behavior has been removed; check the migration guide for replacements. github.com - Renamed
Many packages have been reorganized according to compatibility policy, so imports may need updating. github.com - Behavior changed
Migrating to Jakarta Persistence 3.2 can break existing code; follow the migration guide. github.com - Behavior changed
Internal annotation processing moved to the Hibernate Models project; code relying on the old annotation-processing layer must migrate. github.com - Behavior changed
Illegal annotation combinations and misplaced annotations are now rejected, so mappings that previously loaded may fail at startup. github.com
org.hibernate:hibernate-envers 7.0.0.Beta1 breaking changes
- Removed
Older MariaDB versions are no longer supported; upgrade the database before using this release. github.com - Removed
@ForeignKey
Removes @ForeignKey annotation in org.hibernate:hibernate-envers 7.0.0.Beta1 github.com - Removed
@GeneratorType
Removes @GeneratorType annotation in org.hibernate:hibernate-envers 7.0.0.Beta1 github.com - Removed
@Index
Removes @Index annotation in org.hibernate:hibernate-envers 7.0.0.Beta1 github.com - Removed
@IndexColumn
Removes @IndexColumn annotation in org.hibernate:hibernate-envers 7.0.0.Beta1 github.com - Removed
@LazyCollection
Removes @LazyCollection annotation in org.hibernate:hibernate-envers 7.0.0.Beta1 github.com - Removed
@LazyToOne
Removes @LazyToOne annotation in org.hibernate:hibernate-envers 7.0.0.Beta1 github.com - Removed
@Loader
Removes @Loader annotation in org.hibernate:hibernate-envers 7.0.0.Beta1 github.com - Removed
@Polymorphism
Removes @Polymorphism annotation in org.hibernate:hibernate-envers 7.0.0.Beta1 github.com - Removed
@Proxy
Removes @Proxy annotation in org.hibernate:hibernate-envers 7.0.0.Beta1 github.com
And 21 more in this version. Sign up to see every change
org.hibernate:hibernate-envers 7.0.0.Alpha3 breaking changes
- Removed
Deprecated database dialects were removed in this release. github.com - Removed
hibernate.create_empty_composites.enabled
The hibernate.create_empty_composites.enabled setting was removed. github.com - Removed
IdentifierGeneratorFactory
IdentifierGeneratorFactory and related code were removed. github.com
Older versions
2 older versions, each with its first changes. Sign up to see every change
Show 2 older versions
org.hibernate:hibernate-envers 7.0.0.Alpha2 breaking changes
- Behavior changed
When no name is set, the persistence-unit name is used as the SessionFactory name. github.com - Default changed
The default timestamp precision for Oracle is now 9, which can change stored values. github.com
And 1 more in this version.
org.hibernate:hibernate-envers 7.0.0.Alpha1 breaking changes
- Removed
@Comment
The @Comment annotation was deprecated in this release. github.com - Removed
@Persister
The @Persister annotation was removed in this release. github.com
And 3 more in this version.
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.