CLAP-441 Member entity 조회 시 departement 조회 쿼리가 실행되지 않도록 리팩토링 #591
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.
📄 요약(Summary)
✍🏼 상세(More)
PR Desciption
toDomain 메서드
memberEntityToMemberInfo 메서드 추가:
Department 엔티티의 초기화 여부를 Hibernate.isInitialized() 메서드로 확인, 초기화된 경우에만 Department를 도메인 객체로 변환
mapDepartment 메서드 추가: Department 엔티티의 null 체크 및 초기화 여부 확인, 초기화되지 않은 경우 null 반환하여 불필요한 쿼리 방지
department 조회가 필요한 서비스에는 department fetch 메서드를 실행하도록 수정
Requirements for Reviewer
PR Log
새롭게 배운 것
고민 중인 사항
첨부 자료
Requirements for Reviewer
✅ 체크리스트(Checklist)
🚪 이슈 번호(Issue numbers)
Closes #590