Quote:
HQL passes on everything it doesn't know in the ORDER BY.
this isn't correct
hql find error in order by for this case
select model.id,count(*)
from MyClass as model
group by model.id
order by model.mmm
and throw exception QueryException
org.hibernate.QueryException: could not resolve property: mmm of: myClass [select model.id,count(*) from MyClass model group by model.id order by model.mmm]
ok.it isn't bug, than missing features
'order by' can have - same like select list + positional parameters and hql can recognize it easy
i agree that it isn't important (workaround exists) , but it would be nice