Skip to content

Commit

Permalink
Update repositories.adoc
Browse files Browse the repository at this point in the history
  • Loading branch information
rlconst committed May 10, 2024
1 parent 0e88246 commit 613384c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/docs/guide/shared/repositories.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 613384c

Please sign in to comment.