Skip to content

Commit 2462496

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

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/asciidoc/repository-projections.adoc

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

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

0 commit comments

Comments
 (0)