[hibernate-issues] [Hibernate-JIRA] (HHH-5719) Applying projection to criteria with restricted subcriterias generates wrong SQL