Skip to content

Commit 1924aaf

Browse files
Thomas Darimontodrotbohm
Thomas Darimont
authored andcommitted
DATACMNS-682 - Add details of how to customize repository scanning using JavaConfig.
Completed description for the packages-to-scan customization with JavaConfig. Original pull request: #121.
1 parent 57fca31 commit 1924aaf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/asciidoc/repositories.adoc

+3-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,9 @@ or via <<repositories.create-instances,XML configuration>>:
149149
</beans>
150150
----
151151
+
152-
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
152+
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`.
153+
154+
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 use one of the `basePackage…` attribute of the data-store specific repository `@Enable…`-annotation.
153155

154156
. Get the repository instance injected and use it.
155157
+

0 commit comments

Comments
 (0)