Top Description Methods
org.hibernate.annotations

public @Interface SortComparator

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

Specifies in-memory Set/Map sorting using a specified 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.
Author
Steve Ebersole
See Also
OrderBy, SortComparator

Method Summary

Modifier and TypeMethod and Description
public Class<? extends Comparator<?>>
value()

Specifies the comparator class to use.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public Class<? extends Comparator<?>> value()

Specifies the comparator class to use.