인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

munzi's profile image
munzi

asked

Developing Spring and JPA based web applications

Study Inquiry

EntityGraph 관련 질문 드립니다

Written on

·

166

1

ManyToMany인 것들에 직접 @Basic(fetch = FetchType.EAGER)를 붙여주지 않고 EntityGraph를 사용하신 건 findByPath 에서만 특별하게 EAGER로 가져오고 그 외에는 지연로딩으로 받아오도록 하시기 위해서 맞나요?

그리고 LOAD는 명시 한 것 외에는 default type을 따른다고 되어있는데 entity에서 @Basic으로 설정해놓은 fetch type들이 무시되는 것은 아닌 것 맞나요?

EntityGraph 사용해서 함수별로 type을 따로 설정할 수 있는게 신기하네요

javathymeleafJPAspringspring-boot

Answer 1

2

whiteship님의 프로필 이미지
whiteship
Instructor

네 전부 맞습니다.

munzi's profile image
munzi

asked

Ask a question