Skip to content

Commit 80cee96

Browse files
author
Thomas Darimont
committed
DATACMNS-682 - Fix abrupt documentation line ending.
Completed description for packages to scan customisation with JavaConfig. Original pull request: #121.
1 parent e3df890 commit 80cee96

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/asciidoc/repositories.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ or via <<repositories.create-instances,XML configuration>>:
147147
</beans>
148148
----
149149
+
150-
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
150+
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.
151+
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`.
151152

152153
. Get the repository instance injected and use it.
153154
+

0 commit comments

Comments
 (0)