Skip to content

Commit 18d31ec

Browse files
committed
Document how projection types relate to the entity type hierarchy.
Closes #3092
1 parent b1a5fc4 commit 18d31ec

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

+3
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ interface PersonRepository extends Repository<Person, UUID> {
3434
Now imagine that we want to retrieve the person's name attributes only.
3535
What means does Spring Data offer to achieve this? The rest of this chapter answers that question.
3636

37+
NOTE: Projection types are types residing outside the entity's type hierarchy.
38+
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.
39+
3740
[[projections.interfaces]]
3841
== Interface-based Projections
3942

0 commit comments

Comments
 (0)