JPA 레포지토리와 영속성 컨텍스트JPA 레포지토리는 영속성 컨텍스트를 가진다.**기본적인 Fetch 전략은 Lazy(지연 로딩)**이다.조회 후 영속성 컨텍스트가 끝난 후에 @OneToMany 관계 데이터를 가져오는 것은 원칙적으로 불가능.하지만, Spring Boot는 컨트롤러 내에서는 영속성 컨텍스트를 유지시키는 전략을 기본적으로 사용.이를 OSIV(Open Session in View) 전략이라고 한다.설정 변경 가능: application.ymlspring: jpa: open-in-view: false # 비활성화spring: jpa: open-in-view: true # 활성화OSIV(Open Session in View)란?Spring 백엔드 구조:Repository(레포지토리)Se..