-
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
feature: PR #11 코드 리뷰 반영 #29
Conversation
- findByVisitorMatch->findParticipantIdByWorkspaceId - existsById->isClickedById
- Optional에 대한 orElseThrow처리
- Modifying 추가
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.
제가 놓쳤었는데
public interface ParticipantRepository extends JpaRepository<User, Long> {
이 부분 User가 아니라 Participant가 되야 할 것 같습니다.
@Query(value = "SELECT COUNT(p) >0 FROM Participant p WHERE p.id=:id AND p.participantMatch=true") | ||
Boolean isClickedById(long id); |
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.
Boolean existsByIdAndAndParticipantMatchTrue(long id);
위처럼 JPQL을 사용하지 않고 Data JPA를 사용 할 수도 있을 것 같아요
그리고 isClicekd는 너무 추상적인 단어 인 것 같아요.
GetWorkspacesResponse.of( | ||
workspace.getId(), workspace.getCreator().getUid())) | ||
.filter(workspace -> workspace.getCreatedAt().isBefore(dateFilter)) //게임방 조회: 유지 시간은 24h | ||
.map(workspace ->GetWorkspacesResponse.of(workspace.getId(), workspace.getCreator().getUid())) | ||
.toList(); |
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.
현재는 머지가 된 상태입니다!
- findByUid
e657b04
to
c2e417d
Compare
- 기존의 JPQL에서 Data JPA를 사용하는 것으로 변경
📋 작업 내용
📷 스크린샷(선택)
💬 리뷰 요구사항