DATAREST-508 - Added details about finding projection definitions.

Original pull request: #176.
This commit is contained in:
Greg Turnquist
2015-05-22 16:44:39 -05:00
committed by Oliver Gierke
parent 3e2b4f1994
commit ad75c3cc8e

View File

@@ -133,6 +133,13 @@ It's possible to have multiple projections.
NOTE: Visit <<spring-data-examples.projections>> 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