Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions migration-guide.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,17 @@ See the link:{releaseSeriesBase}#whats-new[website] for the list of new features

This section describes changes to contracts (classes, interfaces, methods, etc.) which are considered https://hibernate.org/community/compatibility-policy/#api[API].

[[contains]]
=== Session.contains(String,Object) deprecated

The method `contains(String,Object)` of `Session` was deprecated.
Use `contains(Object)` instead.

[[noInterceptor]]
== SharedSessionBuilder.noInterceptor()

The behavior of `SharedSessionBuilder.noInterceptor()` was changed to reflect its documented semantics.

[[jpa]]
=== @Jpa (hibernate-testing)

Expand Down
20 changes: 19 additions & 1 deletion whats-new.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,12 @@ class Person {

The annotation is only legal on top-level embedded. Placement on nested embedded values will be ignored.

[[MultiFindOption]]
[[read-only-replicas]]
== Read-only replicas

This release features experimental support for accessing data held in {versionDocBase}/introduction/html_single/#read-only-replicas[read only replicas] of the main database.

[[FindMultipleOption]]
== Introduction of FindMultipleOption

Previous versions of Hibernate supported loading multiple entities of a type via the `Session#byMultipleIds` method.
Expand Down Expand Up @@ -131,3 +136,16 @@ Also, support for vectors in the following databases was added:
* https://www.ibm.com/docs/en/db2/12.1.0?topic=list-vector-values[DB2 12.1+]
* https://help.sap.com/docs/hana-cloud-database/sap-hana-cloud-sap-hana-database-vector-engine-guide/sap-hana-cloud-sap-hana-database-vector-engine-guide[SAP HANA Cloud QRC 4/2024+]
* https://learn.microsoft.com/en-us/sql/t-sql/data-types/vector-data-type?view=sql-server-ver17[SQL Server 2025+]

== Enhancements to SchemaManager

Two new methods were added to `SchemaManager`:

- `resynchronizeGenerators()` force all sequences to catch up with data imported to their corresponding tables
- `truncateTable()` truncates a single table and resets its corresponding primary key sequence

In addition, `truncate()` now automatically resets all primary key sequences and tables backing table generators.

== Regular expression support in HQL

The operators `like regexp` and `ilike regexp` were added to HQL, allowing {versionDocBase}/querylanguage/html_single/#like-predicate[patterns to be written as regular expressions].