[hibernate-issues] [Hibernate-JIRA] (HHH-7781) HQL - setFirstResult generates invalid SQL when CAST is used in HQL (or JPQL) on SQLServer2008Dialect