mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 16:44:57 +00:00
HHH-18129 add to migration guide
Signed-off-by: Gavin King <gavin@hibernate.org>
This commit is contained in:
parent
9a68cd6134
commit
8684095565
@ -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]]
|
[[enum-checks]]
|
||||||
== Enums and Check Constraints
|
== Enums and Check Constraints
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user