Top Description Methods
org.hibernate.annotations

public @Interface SortNatural

extends Annotation
Annotations
@Target:METHOD, FIELD
@Retention:RUNTIME
Imports
java.lang.annotation.Retention, .Target

Sort a java.util.Set or java.util.Map in its natural order

Sorting is performed in memory, by Java's java.util.TreeSet or java.util.TreeMap, and is maintained by any operation that mutates the collection.

It is illegal to use both SortNatural and SortComparator.

Author
Steve Ebersole
See Also
SortComparator, jakarta.persistence.OrderBy, SQLOrder

Method Summary

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString