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. |