Skip to content

[refactor] QueryDSL 도입 및 Repository 구조 통일 (Custom + Impl 패턴) - #25

Merged
h26n merged 1 commit into
mainfrom
develop
Mar 6, 2026
Merged

h26n merged 1 commit into
mainfrom
develop

Conversation

@h26n

@h26n h26n commented Mar 6, 2026

Copy link
Copy Markdown
Owner

JPQL @query, @EntityGraph로 처리하던 복잡 쿼리를 QueryDSL JPAQueryFactory 기반으로 전환하여 동적 검색 시 메서드 분기를 제거하고 컴파일 타임 타입 안전성을 확보한다.

  • QueryDSL 5.1.0 (jakarta) 의존성 추가 및 QuerydslConfig 빈 등록
  • ReservationRepository: 5개 @query → Custom 분리, searchReservations()로 4-way 분기 통합
  • EventRepository: 2개 @query → Custom 분리 (findByIdWithSchedules, findByEventCodeWithSchedules)
  • 나머지 4개 Repository(Host, EventSchedule, FormQuestion, FormAnswer): 빈 Custom + Impl 구조 통일
  • rule.md, CLAUDE.md에 QueryDSL Repository 패턴 규칙 추가

JPQL @query, @EntityGraph로 처리하던 복잡 쿼리를 QueryDSL JPAQueryFactory 기반으로 전환하여
동적 검색 시 메서드 분기를 제거하고 컴파일 타임 타입 안전성을 확보한다.

- QueryDSL 5.1.0 (jakarta) 의존성 추가 및 QuerydslConfig 빈 등록
- ReservationRepository: 5개 @query → Custom 분리, searchReservations()로 4-way 분기 통합
- EventRepository: 2개 @query → Custom 분리 (findByIdWithSchedules, findByEventCodeWithSchedules)
- 나머지 4개 Repository(Host, EventSchedule, FormQuestion, FormAnswer): 빈 Custom + Impl 구조 통일
- rule.md, CLAUDE.md에 QueryDSL Repository 패턴 규칙 추가

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Mar 6, 2026

Copy link
Copy Markdown

Test Results

1 tests   1 ✅  0s ⏱️
1 suites  0 💤
1 files    0 ❌

Results for commit b3fc4c7.

@h26n
h26n merged commit 06f1443 into main Mar 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant