Annotation Type Repository


  • @Introduction
    @Retention(RUNTIME)
    @Target({PARAMETER,ANNOTATION_TYPE,TYPE,FIELD})
    @Documented
    @Type(DataIntroductionAdvice.class)
    @DefaultScope(io.micronaut.context.annotation.Prototype.class)
    public @interface Repository
    Designates a type of a data repository. If the type is an interface or abstract class this annotation will attempt to automatically provide implementations at compilation time.
    Since:
    1.0
    Author:
    graemerocher
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String value
      The name of the underlying datasource connection name.
    • Element Detail

      • value

        java.lang.String value
        The name of the underlying datasource connection name. In a multiple data source scenario this will be the name of a configured datasource or connection.
        Returns:
        The connection name
        Default:
        ""