[JPA] 두번 이상의 left join fetch가 필요할 때, MultipleBagFetchException 문제 해결
에러 메세지 org.springframework.dao.InvalidDataAccessApiUsageException: org.hibernate.loader.MultipleBagFetchException: cannot simultaneously fetch multiple bags: [com.beside.backend.domain.entitiy.wisesaying.WiseSaying.emotionWiseSayingsWords, com.beside.backend.domain.entitiy.wisesaying.WiseSaying.wiseSayingBookmark]; nested exception is java.lang.IllegalArgumentException: org.hibernate.loader.Mult..
error log
2023. 2. 26. 18:43
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 배열
- junit5
- checkout
- Git
- ?.let
- array
- spring boot 3
- Cannot construct instance of
- 장애 대응
- Spring Security
- Kotlin
- java.lang.NullPointerException: Parameter specified as non-null is null
- addFilterBefore
- 추상클래스
- document insert
- dto 클래스 생성자
- JPA
- insertOne
- MongoDB
- MultipleBagFetchException
- 문자열계산기
- port
- Java
- QueryDSL
- ChatGPT
- n+1
- Linux
- 스프링오류
- insertMany
- FetchJoin
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
글 보관함