[hibernate-issues] [JIRA] (OGM-396) Add test for optimistic locking