[✨ Feat] 5주차-JPQL 작성 및 API 구현 #4
Merged
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.
#️⃣ 연관된 이슈
📝 미션 번호
5주차 Misson 5
📋 구현 사항
save()사용ApiResponse: 모든 응답을 감싸는 Wrapper 클래스. 성공/실패 여부, 코드, 메시지, 결과 데이터 포험BaseCode: 성공 및 에러 코드의 기본 정보를 정의하는 인터페이스SuccessStatus / ErrorStatus: 실제 성공 / 에러 상황에 대한 코드ExceptionAdvice: 모든 컨트롤러의 예외를 가로채는 핸들러GeneralException: 커스텀 예외를 위한 기본 클래스BaseErrorCode: 서비스 전반의 에러 코드를 정의하는 인터페이스ApiResponse: 표준화된 응답 DTOcascade = CascadeType.ALL로만 부모 엔티티 삭제 시 JPA가 연관된 자식 엔티티를 자동으로 삭제하도록 로직을 단순화default_batch_fetch_size설정 으로 N+1 문제 해결📌 PR 포인트
✅ 체크리스트
🤔 질문 & 고민