From d964522af4eef743096a91ab7dbd37816ea0f3e9 Mon Sep 17 00:00:00 2001 From: vtsukur Date: Tue, 24 Nov 2015 00:07:29 +0200 Subject: [PATCH] DATAREST-711 - Actualized examples with projection configuration and fixed typos. Original pull request: #202. --- src/main/asciidoc/projections-excerpts.adoc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/asciidoc/projections-excerpts.adoc b/src/main/asciidoc/projections-excerpts.adoc index 9cc62f14b..1e3d7023d 100644 --- a/src/main/asciidoc/projections-excerpts.adoc +++ b/src/main/asciidoc/projections-excerpts.adoc @@ -133,12 +133,12 @@ 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? +How does Spring Data REST finds projection definitions? * 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(…)`. +* You can manually register via `RepositoryRestConfiguration.getProjectionConfiguration().addProjection(…)`. -In either situtation, the interface with your projection MUST have the `@Projection` annotation. +In either situation, the interface with your projection MUST have the `@Projection` annotation. [[projections-excerpts.finding-projections]] === Finding existing projections @@ -185,7 +185,7 @@ Spring Data REST exposes <> documents, a micro metadata format. T Projection definitions will be picked up and made available for clients if they are: * Flagged with the `@Projection` annotation and located in the same package (or sub-package) of the domain type, OR -* Manually registered via `RepositoryRestConfiguration.projectionConfiguration().addProjection(…)`. +* Manually registered via `RepositoryRestConfiguration.getProjectionConfiguration().addProjection(…)`. ==== [[projections-excerpts.hidden-data]]