[hibernate-issues] [JIRA] (HHH-8245) Lock generating wrong SQL and exception vs DB2