Annotation Interface Repository


@Introduction @Retention(RUNTIME) @Target({PARAMETER,ANNOTATION_TYPE,TYPE,FIELD}) @Documented @DefaultScope(io.micronaut.context.annotation.Prototype.class) public @interface Repository
Designates a type of 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
    The name of the underlying datasource connection name.
  • Element Details

    • value

      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:
      ""