Package io.micronaut.data.annotation
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 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
-
Element Details
-
value
String valueThe 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:
- ""
-