Package org.hibernate.annotations
Annotation Type SortComparator
-
@Target({METHOD,FIELD}) @Retention(RUNTIME) public @interface SortComparator
Sort aSetorMapusing the givenComparator.Sorting is performed in memory, by Java's
TreeSetorTreeMap, 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
SortComparatorandSortNatural.- See Also:
SortComparator,OrderBy,SQLOrder
- Use
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description Class<? extends Comparator<?>>valueA class which implementsComparator<E>whereEis the element type.
-
-
-
Element Detail
-
value
Class<? extends Comparator<?>> value
A class which implementsComparator<E>whereEis the element type.
-
-