Package org.hibernate.annotations
Annotation Type SortComparator
-
@Target({METHOD,FIELD}) @Retention(RUNTIME) public @interface SortComparatorSpecifies 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 java.lang.Class<? extends java.util.Comparator<?>>valueSpecifies the comparator class to use.
-