diff --git a/src/main/docs/guide/shared/repositories.adoc b/src/main/docs/guide/shared/repositories.adoc index 4b9e9e00746..cda53740b62 100644 --- a/src/main/docs/guide/shared/repositories.adoc +++ b/src/main/docs/guide/shared/repositories.adoc @@ -2,7 +2,7 @@ Micronaut Data repositories are defined as interfaces that are annotated with th The ann:data.annotation.Repository[] annotation accepts an optional string value which represents the name of the connection or datasource in a multiple datasource scenario. By default, Micronaut Data will look for the default datasource. -It's possible to annotate the repository injection point with ann:data.annotation.Repository[] and set the data source name. Note that you cannot inject generic repositories, each repository needs to be bound to an entity. +It's possible to annotate the repository injection point with ann:data.annotation.Repository[] and set the data source name. Note that you can inject generic repositories not bound to an entities. The entity to treat as the root entity for the purposes of querying is established either from the method signature or from the generic type parameter specified to the api:data.repository.GenericRepository[] interface.