-
Notifications
You must be signed in to change notification settings - Fork 0
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
Question 도메인에 QueryDsl 적용 #57
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Persistence 모듈에 적용 - Spring Boot 2.* 버전에 맞는 설정 적용
- 자동으로 gitIgnore에 포함되도록 수정
- 해당 플러그인은 Qclass 생성을 compileJava와 분리하여 단독적으로 사용하기 위한 플러그인이지만, QClass 중복 생성 오류, 롬복 및 코틀린 코드 인식 불가능 오류등이 발생하여 제거
JpaConfig 클래스를 Persistence 모듈로 이동
…의 default로직으로 분리 - 재사용성 향상
- 기존 메소드를 MajorMultipleChoiceRepository에서 queryDsl로 구현
…MultipleCHoiceQuestionRepository에서 QueryDsl로 구현
- 모든 메소드를 QueryDsl기반의 LicenseMultipleChoiceQuestionRepository에 구현
- 스프링은 인터페이스가 아닌 구현체를 기준으로 빈을 등록되기 떄문에 제네릭 타입이 다르다고 다수의 빈이 생성되지 않음 - 쓰이지않는 JpaRepository 제거
JpaRepository를 바로 호출하도록하기 위함
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
연관된 이슈
https://watermelon-clap.atlassian.net/jira/software/projects/CS/boards/3?selectedIssue=CS-97
작업 내용
jpaRepository가 이를 상속받아서 호출부에서 JpaRepository에 의존하거나
(Question 도메인)
(Question을 상속받고 있는 도메인)
이렇게 한 이유는
Jpa기반많아질 수 있는 파일을 최소화 하기 위함.
(JPA 쓰는 부분이 많다 하더라도,
JPA가 의존하는 세부 기능 interface가 많아지면 실제 클래스도 많아짐,
도메인별 queryDsl의 구현체는 1개, 그리고 그 구현체가 interface를 상속받는 것이 클래스 수가 적어짐)