Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- mysql8업그레이드
- mysql equal null
- 티스토리챌린지
- yml
- RootGraph
- jdbc utf8mb4
- mysql =
- 운동해서 광명찾자
- load order
- 오블완
- fractional seconds
- AuditingEntityListener
- 운영체제별 차이
- NamedEntityGraph
- MYSQL
- mysql not equal null
- sendFractionalSeconds
- jdbc characterencoding utf8mb4
- 1*1000
- 버전 문자열 비교
- Protecle
- spring boot
- getDateCellValue
- apatch poi
- MSSQL
- createEntityGraph
- +9:00
- getEntityGraph
- java jdbc utf8mb4 연결 오류
- https
Archives
- Today
- Total
목록getEntityGraph (1)
Hello

아래구조와 동일한 객체 조회 시 lazy 로 동작해 n+1이 발생했다. 특정 쿼리문에서만 join을 사용해 관련된 테이블을 모두 조회해야할 필요가 있어, EntityGraph를 사용해 해결한 방법을 정리하고자 글을 작성합니다. 어떤 게임에서 건축물을 지을 때 해당 건축물은 여러 옵션을 갖고 있다. 건축물은 옵션을 가지며, 옵션은 실제 효과를 여러개 가질 수 있다. 옵션과 효과 객체를 n:m 매핑 테이블을 만들어 사용이 필요하다. Building 조회시 Option, OptionEffect, Effect를 가진 join 쿼리 적용 방법 @NamedEntityGraph 정의 @Entity @Table(name = "tb_building") @NamedEntityGraph(name = "building.opt..
java
2024. 1. 11. 16:16