2024/08 4

Lazy Initialize Proxy 에러 Fetch Join을 이용하여 해결하기 (OSIV, EAGER, 강제 초기화 지양하기)

https://ykh6242.tistory.com/entry/JPA-OSIVOpen-Session-In-View%EC%99%80-%EC%84%B1%EB%8A%A5-%EC%B5%9C%EC%A0%81%ED%99%94 JPA - OSIV(Open Session In View) 정리OSIV(Open Session In View) OSIV(Open Session In View)는 영속성 컨텍스트를 뷰까지 열어두는 기능이다. 영속성 컨텍스트가 유지되면 엔티티도 영속 상태로 유지된다. 뷰까지 영속성 컨텍스트가 살아있다면ykh6242.tistory.com

빌더 패턴 @Builder @AllArgsConstructor

https://resilient-923.tistory.com/418 [Spring/Java] @Builder 패턴 사용시 @AllArgsConstructor를 사용하는 이유현재 개발을 할 때, 일반적으로 Entity 객체를 생성하는 경우 Lombok 라이브러리를 사용해서 빌더 패턴을 적용하고 있습니다. Entity 클래스에 적용된 어노테이션 중 @Builder라는 어노테이션이 있는데resilient-923.tistory.com https://devlog-wjdrbs96.tistory.com/419 [Spring] @Builder를 사용할 때 고려해야 할 생성자 문제 알아보기@Builder, @AllArgsConstructor 알아보기 이번 글에서는 @Builder, @AllArgsConstructor, ..

org.hibernate.LazyInitializationException: could not initialize proxy [com.codiary.backend.global.domain.entity.Member#3] - no Session at

https://cantcoding.tistory.com/78 JPA/ could not initialize proxy - no Session1.문제점 JPA를 통한 개발을 하다보면 한번쯤 만날 수 밖에없는 에러이다. JPA를 사용하여 DB에 저장된 리소스를 불러와서 반환하는 경우, 혹은 사용할 때 발생했던 에러이다. 2.접근 JPA에 대한 이cantcoding.tistory.com https://byungil.tistory.com/241 JPA Error: 흔히 접할 수 있는 에러 could not initialize proxy - no SessionJPA Error: could not initialize proxy - no Session 접근 JPA강의에서 분명히 이거에 대한 내용을 다뤘던 거 같은데 ..

Spring/error log 2024.08.10