LaohLog
close
프로필 배경
프로필 로고

LaohLog

  • 분류 전체보기 (34)
    • Spring Boot (3)
    • DevOps (10)
    • JPA (6)
    • DB (6)
    • CS (2)
      • Network (2)
    • Java (0)
    • Data Structure (0)
    • Algorithm (5)
  • 홈
  • 글쓰기
[JPA] cannot simultaneously fetch multiple bags 해결 방법

[JPA] cannot simultaneously fetch multiple bags 해결 방법

문제상황 해당 문제는 영속성 전이 기능을 이용하고자 코드를 수정하면서 발생하게 되었다. 초기의 UserAccount는 다음과 같이 구성되어있고 회원가입시 UserAccount 정보, Interests, Questions 총 3번을 저장하는 코드를 작성했었다. 이 부분을 UserAccount 엔티티를 저장함으로써 한번에 저장되도록 수정하면서 발생하게 되었다. public class UserAccount extends BaseEntity{ .... @OneToMany(mappedBy = "userAccount", fetch = FetchType.EAGER) @ToString.Exclude @Setter private Set interests; @OneToMany(mappedBy = "userAccount",..

  • format_list_bulleted JPA
  • · 2024. 2. 11.
  • textsms
  • navigate_before
  • 1
  • navigate_next
공지사항
전체 카테고리
  • 분류 전체보기 (34)
    • Spring Boot (3)
    • DevOps (10)
    • JPA (6)
    • DB (6)
    • CS (2)
      • Network (2)
    • Java (0)
    • Data Structure (0)
    • Algorithm (5)
최근 글
인기 글
최근 댓글
태그
  • #mysql
  • #Spring Security
  • #MultipleBagFetchException
  • #백준
  • #ubuntu
  • #알고리즘
  • #security
  • #JPA
  • #batchsize
  • #비관적 락
전체 방문자
오늘
어제
전체
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바