[hibernate-issues] [JIRA] (HHH-3617) Using Query (Object) ocurr violates foreign key in transaction