Skip to content

Commit d5706b5

Browse files
committed
update whats new and migration guide
1 parent 6c66284 commit d5706b5

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

migration-guide.adoc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,17 @@ See the link:{releaseSeriesBase}#whats-new[website] for the list of new features
4848

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

51+
[[contains]]
52+
=== Session.contains(String,Object) deprecated
53+
54+
The method `contains(String,Object)` of `Session` was deprecated.
55+
Use `contains(Object)` instead.
56+
57+
[[noInterceptor]]
58+
== SharedSessionBuilder.noInterceptor()
59+
60+
The behavior of `SharedSessionBuilder.noInterceptor()` was changed to reflect its documented semantics.
61+
5162
[[jpa]]
5263
=== @Jpa (hibernate-testing)
5364

whats-new.adoc

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,12 @@ class Person {
6060

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

63-
[[MultiFindOption]]
63+
[[read-only-replicas]]
64+
== Read-only replicas
65+
66+
This release features experimental support for accessing data held in {versionDocBase}/introduction/html_single/#read-only-replicas[read only replicas] of the main database.
67+
68+
[[FindMultipleOption]]
6469
== Introduction of FindMultipleOption
6570

6671
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:
131136
* https://www.ibm.com/docs/en/db2/12.1.0?topic=list-vector-values[DB2 12.1+]
132137
* 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+]
133138
* https://learn.microsoft.com/en-us/sql/t-sql/data-types/vector-data-type?view=sql-server-ver17[SQL Server 2025+]
139+
140+
== Enhancements to SchemaManager
141+
142+
Two new methods were added to `SchemaManager`:
143+
144+
- `resynchronizeGenerators()` force all sequences to catch up with data imported to their corresponding tables
145+
- `truncateTable()` truncates a single table and resets its corresponding primary key sequence
146+
147+
In addition, `truncate()` now automatically resets all primary key sequences and tables backing table generators.
148+
149+
== Regular expression support in HQL
150+
151+
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].

0 commit comments

Comments
 (0)