Skip to content

Commit 2ec8246

Browse files
vtsukurodrotbohm
authored andcommitted
DATAREST-711 - Actualized examples with projection configuration and fixed typos.
Original pull request: #202.
1 parent e08dff8 commit 2ec8246

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/asciidoc/projections-excerpts.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,12 @@ It's possible to have multiple projections.
133133

134134
NOTE: Visit <<spring-data-examples.projections>> to see an example project you can experiment with.
135135

136-
How does Spring Data REST finds projection defintions?
136+
How does Spring Data REST finds projection definitions?
137137

138138
* Any `@Projection` interface found in the same package as your entity definitions (or one of it's sub-packages) is registered.
139-
* You can manually register via `RepositoryRestConfiguration.projectionConfiguration().addProjection(…)`.
139+
* You can manually register via `RepositoryRestConfiguration.getProjectionConfiguration().addProjection(…)`.
140140

141-
In either situtation, the interface with your projection MUST have the `@Projection` annotation.
141+
In either situation, the interface with your projection MUST have the `@Projection` annotation.
142142

143143
[[projections-excerpts.finding-projections]]
144144
=== Finding existing projections
@@ -185,7 +185,7 @@ Spring Data REST exposes <<metadata.alps>> documents, a micro metadata format. T
185185
Projection definitions will be picked up and made available for clients if they are:
186186
187187
* Flagged with the `@Projection` annotation and located in the same package (or sub-package) of the domain type, OR
188-
* Manually registered via `RepositoryRestConfiguration.projectionConfiguration().addProjection(…)`.
188+
* Manually registered via `RepositoryRestConfiguration.getProjectionConfiguration().addProjection(…)`.
189189
====
190190

191191
[[projections-excerpts.projections.hidden-data]]

0 commit comments

Comments
 (0)