@Retention(value=RUNTIME)
@Target(value={METHOD,FIELD,ANNOTATION_TYPE})
@Documented
public @interface TypeRole
This is used for example to configure a Pageable
object to be handled differently
to other query arguments.
The parameter names of each role can be resolved from the MethodInvocationContext
as a member of the
DataMethod
annotation where the member name is the role name.
Modifier and Type | Fields and Description |
---|---|
static java.lang.String |
ENTITIES
The parameter that defines an iterable of the entity instances.
|
static java.lang.String |
ENTITY
The parameter that defines an instance of the entity.
|
static java.lang.String |
ID
The parameter that is used for the ID of entity.
|
static java.lang.String |
LAST_UPDATED_PROPERTY
Deprecated.
|
static java.lang.String |
PAGE
The parameter that is used to represent a
Page . |
static java.lang.String |
PAGEABLE
The parameter that is used for pagination.
|
static java.lang.String |
SLICE
The parameter that is used to represent a
Slice . |
static java.lang.String |
SORT
The parameter that is used for sorting.
|
public static final java.lang.String PAGEABLE
public static final java.lang.String ENTITY
public static final java.lang.String ENTITIES
@Deprecated public static final java.lang.String LAST_UPDATED_PROPERTY
public static final java.lang.String SLICE
Slice
.public static final java.lang.String PAGE
Page
.