Annotation Interface SortDefault
@Documented
@Retention(RUNTIME)
@Target(PARAMETER)
@Repeatable(SortDefault.SortDefaults.class)
public @interface SortDefault
Annotation to define the default
Sort options to be used when injecting a Sort instance into a
controller handler method.- Since:
- 1.6
- Author:
- Oliver Gierke, Mark Palich
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceWrapper annotation to allow declaring multipleSortDefaultannotations on a method parameter. -
Optional Element Summary
Optional Elements
-
Element Details
-
value
-
sort
-
direction
Sort.Direction directionThe direction to sort by. Defaults toSort.Direction.ASC.- Returns:
- Default:
ASC
-
caseSensitive
boolean caseSensitiveSpecifies whether to apply case-sensitive sorting. Defaults to true.- Returns:
- Since:
- 2.3
- Default:
true
-