-
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
프로모션 조회 기능 추가 #106
프로모션 조회 기능 추가 #106
Conversation
|
||
public interface PromotionRepository extends JpaRepository<Promotion, Long> { | ||
|
||
@Query(value = "select p from Promotion p where p.startAt <= :now and p.endAt > :now ORDER BY p.priority") |
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.
@Lock(LockModeType.OPTIMISTIC)
거는 경우 제외하고는 JPQL 말고 QueryDsl로 다 통일하기로 했었는데 통일하는 게 좋을 것 같아요!
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.
넵 수정하겠습니다!
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.
고생하셨습니다 :)
🎯 Issue
🔑 Key Changes