[hibernate-issues] [JIRA] (HHH-16721) HQL with subquery with entity path at least two levels deep produces wrong SQL