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, Petar Heyken
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceWrapper annotation to allow declaring multipleSortDefaultannotations on a method parameter. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanSpecifies whether to apply case-sensitive sorting.The direction to sort by.Specifies which null handling to apply.String[]The properties to sort by default.String[]Alias forsort()to make a declaration configuring fields only more concise.
-
Element Details
-
value
-
sort
-
direction
-
caseSensitive
boolean caseSensitiveSpecifies whether to apply case-sensitive sorting. Defaults to true.- Since:
- 2.3
- Default:
true
-
nullHandling
Sort.NullHandling nullHandlingSpecifies which null handling to apply. Defaults toSort.NullHandling.NATIVE.- Since:
- 4.0.5
- Default:
NATIVE
-