Hi folks, I´m with a problem to perform a order by in a query like this :
" select count(distinct cli.codCli) from OrdVis "
I want to order this query in a descendant order, but I can´t. I´ve tried to use a Alias to this "column" but Hibernate does not "translate" it (It uses the default naming to the column, e.g col_0_0) and throws a exception when a execute it.
I tried to use a SortedMap too, but it orders the result in a ascendant way.
Do I have to implement a Comparator ? Or there is some easier way to do this ?
Thanks
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:3.2
Name and version of the database you are using: Oracle 9i