Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QueryDslRepository가 인터페이스를 상속하여 메소드 이름이 통일되도록 수정 #60

Merged
merged 8 commits into from
Jan 11, 2025

Conversation

starwook
Copy link
Contributor

- 객관식 문제가 하는 행동을 정의하는 인터페이스
- **Filter.impl가 각 기능에 맞는 쿼리 메소드를 가지고 있고 QueryDslRepository가 이를 상속
(ex -MajorDescriptiveDslRepository extends MajorQuestionSearchFilter<MajorDescriptiveQuestion>
MajorQuestionSearchFilter는 전공 문제를 검색할때 사용하는 메소드를 모아놓은 인터페이스
- QueryDslRepsotory가 상속받던 BooleanBuilder인터페이스를 Filter가 상속받도록 수정
- QueryDslRepository는 Filter의 메소드를 호출하거나, 구현체의 QQuestion등을 직접 반환하는 것을 구현
- 인터페이스마다 수행해야하는 쿼리가 정의되어있음으로 보다 표시성이 높은 이름으로 수정
@starwook starwook merged commit 23de226 into main Jan 11, 2025
3 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