-
Bug
-
Resolution: Done
-
Major
-
8.0.0.GA
-
False
-
None
-
False
-
-
-
-
-
-
+
-
Known Issue
-
-
This has been caused by !https://hibernate.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/12143!HHH-16586: When merging a persisted entity with a null Version, Hibernate treats entity as transient instead of throwing an ExceptionCLOSED becaue the change fails to check if the id is generated as additional condition to throw the exception.
The current implementation fails because when @MapsId is used, the identitfier is not assigned the UNDEFINED UnsavedValueStrategy
Workaround
One way of working this around, when the mapped id is not generated, is to not use @MapsId and add insertable = false, updatable = false in the @JoinColumn annotation of the association.
- clones
-
JBEAP-26317 [GSS](7.4.z) HHH-17380 - Persisting an entity with a non generated id and @MapsId throws PropertyValueException
- Closed
- is incorporated by
-
JBEAP-26177 [GSS](8.0.z) Upgrade Hibernate from 6.2.13.Final-redhat-00001 to 6.2.25.Final
- Closed
- incorporates
-
HHH-17380 Loading...