Package org.hibernate.annotations
Annotation Type SortComparator
-
@Target({METHOD,FIELD}) @Retention(RUNTIME) public @interface SortComparator
Specifies in-memory Set/Map sorting using a specifiedComparatorfor sorting. NOTE : Sorting is different than ordering (seeOrderBy) which is applied during the SQL SELECT. For sorting based on natural sort order, useSortNaturalinstead. It is illegal to combineSortComparatorandSortNatural.- See Also:
OrderBy,SortComparator
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description Class<? extends Comparator<?>>valueSpecifies the comparator class to use.
-
-
-
Element Detail
-
value
Class<? extends Comparator<?>> value
Specifies the comparator class to use.
-
-