From 80cee96e5aaf6c0af17c23af0667e8154adff7f8 Mon Sep 17 00:00:00 2001 From: Thomas Darimont Date: Mon, 13 Apr 2015 15:25:33 +0200 Subject: [PATCH] DATACMNS-682 - Fix abrupt documentation line ending. Completed description for packages to scan customisation with JavaConfig. Original pull request: #121. --- src/main/asciidoc/repositories.adoc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/asciidoc/repositories.adoc b/src/main/asciidoc/repositories.adoc index c74ef4b970..e22fb0306c 100644 --- a/src/main/asciidoc/repositories.adoc +++ b/src/main/asciidoc/repositories.adoc @@ -147,7 +147,8 @@ or via <>: ---- + -The JPA namespace is used in this example. If you are using the repository abstraction for any other store, you need to change this to the appropriate namespace declaration of your store module which should be exchanging `jpa` in favor of, for example, `mongodb`. Also, note that the JavaConfig variant doesn't configure a package explictly as the package of the annotated class is used by default. To customize the package to scan +The JPA namespace is used in this example. If you are using the repository abstraction for any other store, you need to change this to the appropriate namespace declaration of your store module which should be exchanging `jpa` in favor of, for example, `mongodb`. Also, note that the JavaConfig variant doesn't configure a package explictly as the package of the annotated class is used by default. +The packages to scan can be customized via the `basePackages` attribute of the data-store specific Repository annotation like `@EnableJpaRepositories` or `@EnableMongoRepositories`. For more concise declarations the `value` attribute can be used as an alias for `basePackages`. . Get the repository instance injected and use it. +