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
SortNatural
to sort by natural order. - Use
OrderBy
to order using an expression written in HQL. - Use
SQLOrder
to 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>
whereE
is the element type.
-
Element Details
-
value
Class<? extends Comparator<?>> valueA class which implementsComparator<E>
whereE
is the element type.
-