Annotation Type RepositoryConfiguration


  • @Retention(RUNTIME)
    @Target({ANNOTATION_TYPE,TYPE})
    @Documented
    public @interface RepositoryConfiguration
    Models compilation time configuration for the repository. Typically used as a meta-annotation.
    Since:
    1.0.0
    • 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
        Configures TypeRole behaviour for a repository. This member allows for configuration of custom types that play different roles in the construction and execution of repositories. Note that additional TypeConverter instances 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)}
      • implicitQueries

        boolean implicitQueries
        Does the repository allow implicit queries by type and ID etc. or are explicit query always needed.
        Returns:
        True if it does
        Default:
        true
      • namedParameters

        boolean namedParameters
        Whether named parameters starting with colon are supported in the query syntax.
        Returns:
        True if named parameters are supported
        Default:
        true