We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
JPQL, CriteriaAPI, Specification 등을 통해 구현했던 기존 쿼리 메서드를 QueryDSL을 적용하여 마이그레이션 합니다.
기존 일치하는 태그 목록에 해당하는 템플릿이 있는지 확인하는 로직
QueryDsl을 사용하게 될 경우 실제 쿼리와 메서드가 닮아있어 가독성이 좋습니다.
컴파일 단에서 문법 확인이 불가능했던 기존 JPQL 문
return new JPAQueryFactory(entityManager) .delete(sourceCode) .where(sourceCode.template.id.in(templateIds)) .execute();
처럼 메서드가 제공되어 수월한 쿼리 작성이 가능합니다.
이슈를 완료하기까지 예상되는 소요 시간을 분 or 시간 or 일 단위로 작성해주세요.
테코블 - Spring Boot에 QueryDSL을 사용해보자
The text was updated successfully, but these errors were encountered:
jminkkk
No branches or pull requests
📌 어떤 기능을 리팩터링 하나요?
AS-IS 1
기존 일치하는 태그 목록에 해당하는 템플릿이 있는지 확인하는 로직
TO-BE 1
QueryDsl을 사용하게 될 경우 실제 쿼리와 메서드가 닮아있어 가독성이 좋습니다.
AS-IS 2
컴파일 단에서 문법 확인이 불가능했던 기존 JPQL 문
TO-BE 2
처럼 메서드가 제공되어 수월한 쿼리 작성이 가능합니다.
⏳ 예상 소요 시간
🔍 참고할만한 자료(선택)
테코블 - Spring Boot에 QueryDSL을 사용해보자
The text was updated successfully, but these errors were encountered: