| Hi, If NULLS FIRST or NULLS LAST is used in a @JoinFormula (or in a @Formula I guess), Hibernate prefixes the keywords with the alias, ending up in a broken subquery:
ORDER BY mytable.mycol DESC myalias2_.NULLS myalias2_.LAST
Obviously, NULLS and LAST should not be prefixed  |