Package org.hibernate.annotations

Annotation Interface SortNatural


@Target({METHOD,FIELD})@Retention(RUNTIME)public @interfaceSortNatural
Sort aSet orMap in itsnatural order

Sorting is performed in memory, by Java'sTreeSet orTreeMap, and is maintained by any operation that mutates the collection.

It is illegal to use bothSortNatural andSortComparator.

See Also: