注释类型 Sort
-
@Target({METHOD,FIELD}) @Retention(RUNTIME) @Deprecated public @interface Sort
已过时。UseSortComparatororSortNaturalinstead depending on need.Collection sort (in-memory sorting). Different than ordering, which is applied during the SQL select.- 作者:
- Emmanuel Bernard
- 另请参阅:
OrderBy
-
-
可选元素概要
可选元素 修饰符和类型 可选元素 说明 Classcomparator已过时。Specifies the comparator to use.SortTypetype已过时。The type of sorting to use.
-
-
-
元素详细资料
-
type
SortType type
已过时。The type of sorting to use. The default is to not use sorting.- 默认值:
- org.hibernate.annotations.SortType.UNSORTED
-
-
-
comparator
Class comparator
已过时。Specifies the comparator to use. Only valid whentype()specifiesSortType.COMPARATOR. TODO find a way to use Class-> see HHH-8164 - 默认值:
- void.class
-
-