HHH-18129 add to migration guide

Signed-off-by: Gavin King <gavin@hibernate.org>
This commit is contained in:
Gavin King 2024-05-17 00:33:00 +02:00 committed by Steve Ebersole
parent 9a68cd6134
commit 8684095565
1 changed files with 9 additions and 0 deletions

View File

@ -106,6 +106,15 @@ class Book {
----
[[auto-cascade-persist]]
== Cascading persistence for `@Id` and `@MapsId` fields
Previously Hibernate automatically enabled `cascade=PERSIST` for association fields annotated `@Id` or `@MapsId`.
This was undocumented and unexpected behavior, and arguably against the intent of the Persistence specification.
Existing code which relies on this behavior should be modified by addition of explicit `cascade=PERSIST` to the association field.
[[enum-checks]]
== Enums and Check Constraints