diff --git a/migration-guide.adoc b/migration-guide.adoc index d65de8bf5fc2..8e5c7d93d5f4 100644 --- a/migration-guide.adoc +++ b/migration-guide.adoc @@ -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) diff --git a/whats-new.adoc b/whats-new.adoc index dc8d140ea0ef..29670dd77177 100644 --- a/whats-new.adoc +++ b/whats-new.adoc @@ -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. @@ -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]. \ No newline at end of file