Skip to content

Commit 6299fd9

Browse files
authoredOct 15, 2020
Entity Via SqlResultSetMapping And NamedNativeQuery
1 parent 05d7f1d commit 6299fd9

File tree

1 file changed

+1
-1
lines changed
  • HibernateSpringBootDtoSqlResultSetMappingAndNamedNativeQueryEntity2/src/main/java/com/bookstore/entity

1 file changed

+1
-1
lines changed
 

‎HibernateSpringBootDtoSqlResultSetMappingAndNamedNativeQueryEntity2/src/main/java/com/bookstore/entity/Author.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
@NamedNativeQuery(
4242
name = "Author.fetchWithBook",
4343
query = "SELECT a.*, b.* FROM author a INNER JOIN book b ON a.id = b.author_id",
44-
resultSetMapping = "AuthorMapping"
44+
resultSetMapping = "AuthorWithBookMapping"
4545
)
4646
@SqlResultSetMapping(
4747
name = "AuthorWithBookMapping",

0 commit comments

Comments
 (0)
Failed to load comments.