Vijayasaradhi Danda (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-16111 (
https://hibernate.atlassian.net/browse/HHH-16111?atlOrigin=eyJpIjoiZDU0Zj...
)
Re: Field annotated with @Version does not increase when entity is updated using merge (
https://hibernate.atlassian.net/browse/HHH-16111?atlOrigin=eyJpIjoiZDU0Zj...
)
Thanks for the response @Marco Belladelli .
I removed the mappedBy and added @JoinColumn on parent as you suggested. I reran the 3
tests (starts with hhh16111 in pull request). The version was updated when adding a child
entity. However, the test hhh16111_updateQuestionText_noconcurrent_update in pull request
fails. (I didn’t submit a new pull request since the change is a trivial mapping change,
when running with update it was working in version 5)
In this scenario, we update the child entity and save it through the parent. The version
does not get updated.
(
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:6115380 )