Package org.hibernate.annotations
Annotation Type SortNatural
-
@Target({METHOD,FIELD}) @Retention(RUNTIME) public @interface SortNatural
Specifies in-memory Set/Map sorting using natural sorting. NOTE : Sorting is different than ordering (seeOrderBy
) which is applied during the SQL SELECT. For sorting based on a comparator, useSortComparator
instead. It is illegal to combineSortComparator
and SortNatural.- See Also:
OrderBy
,SortComparator