Package io.micronaut.data.annotation
Annotation Type RepositoryConfiguration
-
@Retention(RUNTIME) @Target({ANNOTATION_TYPE,TYPE}) @Documented public @interface RepositoryConfigurationModels compilation time configuration for the repository. Typically used as a meta-annotation.- Since:
- 1.0.0
- Author:
- graemerocher
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanimplicitQueriesDoes the repository allow implicit queries by type and ID etc.booleannamedParametersWhether named parameters starting with colon are supported in the query syntax.java.lang.Class<? extends RepositoryOperations>operationsjava.lang.Class<? extends QueryBuilder>queryBuilderThe builder to use to encode queries.TypeRole[]typeRolesConfiguresTypeRolebehaviour for a repository.
-
-
-
Element Detail
-
queryBuilder
java.lang.Class<? extends QueryBuilder> queryBuilder
The builder to use to encode queries. Defaults to JPA-QL.- Returns:
- The query builder
- Default:
- io.micronaut.data.model.query.builder.jpa.JpaQueryBuilder.class
-
-
-
operations
java.lang.Class<? extends RepositoryOperations> operations
- Returns:
- The default back end interface to use.
- Default:
- io.micronaut.data.operations.RepositoryOperations.class
-
-
-
typeRoles
TypeRole[] typeRoles
ConfiguresTypeRolebehaviour for a repository. This member allows for configuration of custom types that play different roles in the construction and execution of repositories. Note that additionalTypeConverterinstances may need to be registered if types that do not extend from the defaults are registered.- Returns:
- The parameter roles
- Default:
- {@io.micronaut.data.annotation.TypeRole(role="pageable", type=io.micronaut.data.model.Pageable.class), @io.micronaut.data.annotation.TypeRole(role="sort", type=io.micronaut.data.model.Sort.class), @io.micronaut.data.annotation.TypeRole(role="slice", type=io.micronaut.data.model.Slice.class), @io.micronaut.data.annotation.TypeRole(role="page", type=io.micronaut.data.model.Page.class)}
-
-