Package org.hibernate.annotations
Annotation Type SortNatural
-
@Target({METHOD,FIELD}) @Retention(RUNTIME) public @interface SortNaturalSpecifies 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, useSortComparatorinstead. It is illegal to combineSortComparatorand SortNatural.- See Also:
OrderBy,SortComparator