-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: 닉네임 검색 기능 #225
feat: 닉네임 검색 기능 #225
Conversation
df622f0
to
0627cbb
Compare
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
리뷰 달았습니당
Optional<Member> findByProfileNickname(String nickname); | ||
|
||
@Query( | ||
"SELECT m FROM Member m WHERE m.profile.nickname like %:searchNickname% AND m.profile.nickname != :myNickname") | ||
List<Member> nicknameSearch(String searchNickname, String myNickname); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Like도 Querydsl 되지 않나요??? Native로 작성하신 이유가 궁금해용
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
복잡한 로직이 들어간게 아니여서 QueryDSL을 사용하지 않아도 된다고 판단했어용,
다만 Spring Data Jpa를 썼을때는 메소드 네이밍이 길어지기 때문에 Query어노테이션을 사용해서 처리했슴니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
🌱 관련 이슈
📌 작업 내용 및 특이사항
📚 기타