@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 |
---|---|
Class<? extends Comparator<?>> |
value
Specifies the comparator class to use.
|
public abstract Class<? extends Comparator<?>> value
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.