Package org.hibernate.annotations
Annotation Interface SortComparator
Sort a
Set or Map using the given Comparator.
Sorting is performed in memory, by Java's TreeSet or TreeMap,
and is maintained by any operation that mutates the collection.
- Use
SortNaturalto sort by natural order. - 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 SortComparator and SortNatural.
- See Also:
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionClass<? extends Comparator<?>>A class which implementsComparator<E>whereEis the element type.
-
Element Details
-
value
Class<? extends Comparator<?>> valueA class which implementsComparator<E>whereEis the element type.
-