-
Bug
-
Resolution: Done
-
Major
-
None
-
False
-
None
-
False
-
-
-
-
-
-
+
-
-
https://hibernate.atlassian.net/browse/HHH-16586
Observed behaviour
- Entity has a Version field of type Long.
- New instance gets persisted.
- Instance is modified and merge is attempted with a null version field.
- Hibernate does not complain about null version. Instead the entity is treated as transient, although it exists in the database, leading to unexpected results.
Expected behaviour
- When attempting to merge a persisted and detached entity with a null version, Hibernate either throws an exception or fetches the latest version from the database.
- is cloned by
-
JBEAP-25287 (8.0.z) HHH-16586 - When merging a persisted entity with a null Version, Hibernate treats entity as transient instead of throwing an Exception
- Closed
- is incorporated by
-
JBEAP-25200 (7.4.z) Upgrade Hibernate ORM from 5.3.30.Final-redhat-00001 to 5.3.31.Final-redhat-00001
- Closed