Package io.micronaut.data.annotation
Annotation Type TypeRole
-
@Retention(RUNTIME) @Target({METHOD,FIELD,ANNOTATION_TYPE}) @Documented @Inherited public @interface TypeRoleA type role indicates a method element in a repository that plays a role in query execution and should not be factored into query calculation but instead made available at runtime using the specified role name.This is used for example to configure a
Pageableobject to be handled differently to other query arguments.The parameter names of each role can be resolved from the
MethodInvocationContextas a member of theDataMethodannotation where the member name is the role name.- Since:
- 1.0.0
- Author:
- graemerocher
-
-
Field Summary
Fields Modifier and Type Fields Description static java.lang.StringENTITIESThe parameter that defines an iterable of the entity instances.static java.lang.StringENTITYThe parameter that defines an instance of the entity.static java.lang.StringIDThe parameter that is used for the ID of entity.static java.lang.StringLAST_UPDATED_PROPERTYDeprecated.static java.lang.StringPAGEThe parameter that is used to represent aPage.static java.lang.StringPAGEABLEThe parameter that is used for pagination.static java.lang.StringSLICEThe parameter that is used to represent aSlice.static java.lang.StringSORTThe parameter that is used for sorting.
-