[6주차/제이] 워크북 제출합니다#73
Open
yeongjun25 wants to merge 4 commits into
Open
Conversation
Sangrix
reviewed
May 6, 2026
| 만약 여러 행을 반환하는 상황이거나 검색 조건을 넣어서 조회를 할 때는 어떻게 할 것인가? 이런 경우 `em.find(Member.class, 1L);` 만으로는 부족하다. 왜냐하면 실제로 데이터를 조회할 때는 "나이 20세 이상" 또는 "이름이 Yoo로 시작하는 회원" 등의 조건이 붙기 때문이다. | ||
|
|
||
| 즉, DB에서 조건 없이 모든 데이터를 다 가져와 객체로 만든 뒤 자바에서 필터링하는 건 사실상 불가능하다. | ||
|
|
There was a problem hiding this comment.
JPA가 있음에도 JPQL이 필요했던 이유에 대해 잘 조사해주셔서 이해에 도움이 되었습니다!
YoungJJun
reviewed
May 8, 2026
Collaborator
YoungJJun
left a comment
There was a problem hiding this comment.
제이 키워드 정리 잘 해주셨어요!
fetch join 관련해서 DISTINCT 사용해야 하는 부분 찾아주신점이 좋았습니당.
피어리뷰랑 미션(Swagger 캡쳐) 진행해주시면 Apporve 하겠습니다!
YoungJJun
approved these changes
May 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
✅ 워크북 체크리스트
✅ 컨벤션 체크리스트
📌 주안점