From 4363d21354bee64ed70791c10b8c18995dfeb8f9 Mon Sep 17 00:00:00 2001 From: Constantine <98635035+rlconst@users.noreply.github.com> Date: Tue, 30 Apr 2024 17:26:45 +0700 Subject: [PATCH] Update repositories.adoc --- src/main/docs/guide/shared/repositories.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.