diff --git a/src/main/asciidoc/projections-excerpts.adoc b/src/main/asciidoc/projections-excerpts.adoc index bfa5eb13d..9cc62f14b 100644 --- a/src/main/asciidoc/projections-excerpts.adoc +++ b/src/main/asciidoc/projections-excerpts.adoc @@ -133,6 +133,13 @@ It's possible to have multiple projections. NOTE: Visit <> to see an example project you can experiment with. +How does Spring Data REST finds projection defintions? + +* Any `@Projection` interface found in the same package as your entity definitions (or one of it's sub-packages) is registered. +* You can manually register via `RepositoryRestConfiguration.projectionConfiguration().addProjection(…)`. + +In either situtation, the interface with your projection MUST have the `@Projection` annotation. + [[projections-excerpts.finding-projections]] === Finding existing projections