[hibernate-issues] [JIRA] (HHH-12099) Query#getLockMode ought to throw exception for non-SELECT