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