How can I order by a specific property order in HQL?
For MySQL I can use: SELECT * FROM question q ORDER BY q.status IN ("DONE", "NO_ACTION"), q.status IN ("NEW","SAVED"), q.created DESC
but HQL doesn't allow in
in order by
.
Am I missing something? Is there some other way around this problem?
Thanks