[hibernate-issues] [JIRA] (HHH-2386) createQuery() converts JPQL into incorrect SQL