[hibernate-issues] [JIRA] (BVAL-727) Incorrect conversion of HQL to SQL for queries with element()