Skip to content

Commit 05d44ea

Browse files
cunhazeragavinking
authored andcommitted
Changing Repository class name in example
1 parent 52472f1 commit 05d44ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

documentation/src/main/asciidoc/repositories/Repositories.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ The JPQL specification provides the `select new` construct for this.
495495

496496
[source,java]
497497
----
498-
@Query("select new AuthorBookRecord(b.isbn, a.ssn, a.name, b.title " +
498+
@Query("select new AuthorBookSummary(b.isbn, a.ssn, a.name, b.title " +
499499
"from Author a join books b " +
500500
"where title like :pattern")
501501
List<AuthorBookSummary> summariesForTitle(@Pattern String pattern);

0 commit comments

Comments
 (0)