Skip to content

Commit

Permalink
HHH-18129 add to migration guide
Browse files Browse the repository at this point in the history
Signed-off-by: Gavin King <gavin@hibernate.org>
  • Loading branch information
gavinking committed May 16, 2024
1 parent 2563eb3 commit 7992819
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions migration-guide.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7992819

Please sign in to comment.