반응형
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
- spring MVC
- BindingResult
- 김영한
- n+1
- MVC
- optional
- 구글 보안 api 활용
- mapping corresponding
- for all entries in
- new syntax
- abap
- Testcode
- value base corresponding
- sap memory
- springSecurityFilterChain 오류
- application-properties
- Validation
- controller
- SAP
- 신문법 abap
- memory 정리
- @Controller
- jpa
- SpringMVC
- .orelseThrow
- memory변수명 변경
- abap면접
- spring
- abap memory
- abap value in field Data Class error
Archives
- Today
- Total
목록증가된 데이터 (1)
SAP공장
@OneToMany 일 때 fetch join 시 data의 량이 늘어난다?
정리 Q. @OneToMany 일 때 fetch join 시 data의 량이 늘어가는 이유? One의 입장에서 Many를 부를때 One에 해당되는 Many 마다 결과값을 출력해줘야 하므로 출력되는 양이 많아진다. Q. 해결 방법은? distinct를 사용해서 중복을 제거한다. "select distinct t From Team t join fetch t.members" Q. 중복 제거하니까 무조건 OneToMany는 distinct를 써야하네? 사용자의 Needs가 다를수 있으니 상황에 맞춰 쓰자! 살펴보기 Id(PK) Name 1 팀A 2 팀B 3 팀C // One Id(PK) TEMA_ID(FK) NAME 1 1 회원1 2 1 회원2 3 2 회원3 4 NULL 회원4 // Many Query를 "se..
[WEB]Back-end/JPA
2022. 1. 22. 07:35