Skip to content

Commit 9e43c2a

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 cb78260 commit 9e43c2a

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
@@ -147,7 +147,9 @@ 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`.
151+
152+
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.
151153

152154
. Get the repository instance injected and use it.
153155
+

0 commit comments

Comments
 (0)