[hibernate-issues] [JIRA] (HHH-2136) HQL generates wrong sql statements