Replies: 1 comment
-
|
저도 이번에 정렬 유틸 클래스를 작성하면서 적당히 추상화를 잘 해서 만들어두면 용이할것이라고 생각했었습니다! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
QueryDSL을 사용하다보면
eq(),between(),like()관련 코드 중복이 발생합니다. 도메인 Repo마다 메서드 추출을 해서 관리하면 재사용성이 떨어진다 생각합니다.아래와 같은 유틸 클래스를 도입하는건 어떨까요? 단순히
BooleanExpression을 반환하는 경우 외에 페이징, 슬라이스도 구현가능할 것 같아요!아래는 이를 적용한 예시입니다.
Beta Was this translation helpful? Give feedback.
All reactions