Browse Source

Document how projection types relate to the entity type hierarchy.

Closes #3092
3.2.x
Mark Paluch 2 years ago
parent
commit
a08a5f753b
No known key found for this signature in database
GPG Key ID: 55BC6374BAA9D973
  1. 3
      src/main/antora/modules/ROOT/pages/repositories/projections.adoc

3
src/main/antora/modules/ROOT/pages/repositories/projections.adoc

@ -34,6 +34,9 @@ interface PersonRepository extends Repository<Person, UUID> {
Now imagine that we want to retrieve the person's name attributes only. Now imagine that we want to retrieve the person's name attributes only.
What means does Spring Data offer to achieve this? The rest of this chapter answers that question. What means does Spring Data offer to achieve this? The rest of this chapter answers that question.
NOTE: Projection types are types residing outside the entity's type hierarchy.
Superclasses and interfaces implemented by the entity are inside the type hierarchy hence returning a supertype (or implemented interface) returns an instance of the fully materialized entity.
[[projections.interfaces]] [[projections.interfaces]]
== Interface-based Projections == Interface-based Projections

Loading…
Cancel
Save