@Target(value={METHOD,FIELD})
@Retention(value=RUNTIME)
public @interface SortComparator
Comparator
for sorting.
NOTE : Sorting is different than ordering (see OrderBy
) which is applied during the SQL SELECT.
For sorting based on natural sort order, use SortNatural
instead. It is illegal to combine
SortComparator
and SortNatural
.OrderBy
,
SortComparator
Modifier and Type | Required Element and Description |
---|---|
java.lang.Class<? extends java.util.Comparator<?>> |
value
Specifies the comparator class to use.
|
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.