How can I sort by a specific order of properties 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 does not allow inc order by.
Am I missing something? Is there any other way to solve this problem?
thank
source
share