Vijayasaradhi Danda (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiMDZiMWY5N2Ix...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16111?atlOrigin=eyJpIjoiMDZiMW...
) HHH-16111 (
https://hibernate.atlassian.net/browse/HHH-16111?atlOrigin=eyJpIjoiMDZiMW...
) Field annotated with @Version does not increase when entity is updated using merge (
https://hibernate.atlassian.net/browse/HHH-16111?atlOrigin=eyJpIjoiMDZiMW...
)
Issue Type: Bug Affects Versions: 6.2.0.CR1, 6.1.6 Assignee: Unassigned Components:
hibernate-orm-modules Created: 27/Jan/2023 10:16 AM Environment: OpenJDK Runtime
Environment (build 17.0.2+8-86), Mac OS Monterey Version 12.6.2 Priority: Blocker
Reporter: Vijayasaradhi Danda (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
We have a parent entity with a version column and a child entity. The association between
parent to child is (one to many). The following steps are performed.
1.Fetch the parent entity
2.Add a new child entity/update the existing child entity (fetched entity is used as
detached entity)
3.Merge the updated parent entity
This operation should update the field marked with @Version annotation but does not happen
in 6.1.6.Final or 6.2.0.CR1. This works as expected in 5.6.14.Final.
In pull request , see the test case named after the ticket number. In hibernate orm 5 the
same test passes.
(
https://hibernate.atlassian.net/browse/HHH-16111#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16111#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100214- sha1:c40e72a )