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