Package org.hibernate.annotations
Annotation Interface SortNatural
Sort a
Set or Map in its natural order
Sorting is performed in memory, by Java's TreeSet or TreeMap,
and is maintained by any operation that mutates the collection.
- Use
SortComparatorto sort the collection in memory using aComparator. - Use
OrderByto order using an expression written in HQL. - Use
SQLOrderto order using an expression written in native SQL.
It is illegal to use both SortNatural and SortComparator.
- See Also: