Hibernate version:3.2.RC2
I have ordered all my activities on description .
Every activity has a percentcompleted intvalue from 0 to 100.
I want to order by 100% completed then by 0 to 99.
So that all activities that are finished will display at the bottom of the list.
How would I create a query that accomplishes this?
This is my simplified query that I'm basing the sort on:
Code:
List Activities = session.createCriteria(Activity.class)
.addOrder(Order.asc("description") )
.list()
Thanks in advance for any help