[hibernate-issues] [Hibernate-JIRA] (HHH-6100) Bug fix related to CriteriaQuery (JPA) when using XML mappings