refactor: QueryDSL Repository를 CommandRepository와 QueryRepository로 분리(#110) #111
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.
📌 작업 내용 및 특이사항
✅ CommandRepository 구현 및 명령(등록, 검증, 삭제) 로직 분리
MemberCommandRepository,MemberCommandRepositoryAdapter구현TripCommandRepository,TripCommandRepositoryAdapter구현StampCommandRepository,StampCommandRepositoryAdapter구현MissionCommandRepository,MissionCommandRepositoryAdapter구현DailyMissionCommandRepository,DailyMissionCommandRepositoryAdapter구현StudyLogCommandRepository,StudyLogCommandRepositoryAdapter구현StudyLogDailyMissionCommandRepository,StudyLogDailyMissionCommandRepositoryAdapter구현PomodoroCommandRepository,PomodoroCommandRepositoryAdapter구현TripReportQueryRepository,TripReportQueryRepositoryAdapter구현✅ 스탬프 생성 관련 로직 개선
StampQueryService.getNextStampOrderByTrip()에서 받은 nextOrder를 이용해 스탬프 생성 로직 개선StampQueryRepository,StampQueryRepositoryAdapter에서findMaxStampOrderByTripId메서드 삭제StampCommandService.computeNextStampOrder()삭제✅ 스탬프 삭제 관련 로직 개선
StampCommandService.deleteStamp()에서 스탬프 순서 변경 로직 분리StampCommandService.deleteStamp()는 소프트 삭제만 담당✅ QueryRepository 메서드 추가
StampQueryRepository,StampQueryRepositoryAdapter에findNextStampOrderByTripId메서드 추가✅ QueryService 메서드 추가
StampQueryService에getNextStampOrderByTrip메서드 추가StampQueryService에getStampsToShiftAfterDeleted메서드 추가StampCommandService에shiftStampOrders메서드 추가✅ 테스트 추가
StampQueryServiceTest에GetNextStampOrderByTrip단위 테스트 추가StampQueryServiceTest에GetStampsToShiftAfterDeleted단위 테스트 추가StampCommandServiceTest에ShiftStampOrders단위 테스트 추가StampFixture에createStampWithName메서드 추가✅ 테스트 수정
MemberCommandServiceTest단위 테스트 수정TripCommandServiceTest단위 테스트 수정StampCommandServiceTest단위 테스트 수정MissionCommandServiceTest단위 테스트 수정DailyMissionCommandServiceTest단위 테스트 수정StudyLogCommandServiceTest단위 테스트 수정StudyLogDailyMissionCommandServiceTest단위 테스트 수정PomodoroCommandServiceTest단위 테스트 수정DailyGoalCommandServiceTest단위 테스트 수정TripReportCommandServiceTest단위 테스트 수정TripReportStudyLogCommandServiceTest단위 테스트 수정🌱 관련 이슈
🔍 참고사항(선택)
QueryRepositoryAdapter에서 Q 클래스 static import 적용으로 QueryDSL 가독성 향상DailyGoalQueryRepository->DailyGoalCommandRepository이름 변경TripReportQueryRepository->TripReportCommandRepository이름 변경TripReportStudyLogQueryRepository->TripReportStudyLogCommandRepository이름 변경📚 기타(선택)