Skip to content

Commit f73a704

Browse files
committed
Attribute Lazy Loading
1 parent 7ead17a commit f73a704

File tree

1 file changed

+1
-2
lines changed
  • HibernateSpringBootAttributeLazyLoadingJacksonSerialization/src/main/java/com/bookstore/service

1 file changed

+1
-2
lines changed

HibernateSpringBootAttributeLazyLoadingJacksonSerialization/src/main/java/com/bookstore/service/BookstoreService.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ public List<Author> fetchAuthorsDetailsByAgeGreaterThanEqual(int age) {
7272

7373
List<Author> authors = authorRepository.findByAgeGreaterThanEqual(age);
7474

75-
// this is just a proof of concept
76-
// don't do this since this is a N+1 case
75+
// don't do this since this is a N+1 case (use a simple SQL)
7776
authors.forEach(a -> {
7877
a.getAvatar();
7978
a.getAge();

0 commit comments

Comments
 (0)