[hibernate-issues] [JIRA] (HHH-16165) Incorrect SQL generated when using SELECT DISTINCT and @OrderBy