Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
DONE
친구 & 친구 요청 Entity
ManyToOne
관계에 대해fetch = FetchType.LAZY
적용 참고ManyToOne
관계에 대해optional = false
적용from_user_id
와to_user_id
에 대해 Unique Constraint 추가친구 API - 놀러가기
FriendController
에서PUT
매핑된 메소드 이름을update
->hangOut
으로 대체하고,UpdateServiceDto
등 Update 관련 코드를 삭제하고, 놀러가기 (hangOut
)로 다시 네이밍FriendQueryRepository
에hangOutOffForAllFriendsOfFromUser(UUID fromUserId)
추가FromUserId
가 다른Friend
의 놀러가기 상태에 대해서는 영향이 없도록 함FriendQueryRepository
의hangOutOffForAllFriendsOfFromUser(UUID fromUserId)
테스트 코드 추가TODO
isHangingOut = true
가 단 하나여야 하므로 DB 레벨에서 Unique Constraint를 추가하고 싶었으나, 애플리케이션(JPA/Hibernate) 레벨에선 안되는 것으로 보임 (어노테이션 미지원). DB에 직접 unique constaint 추가해야 적용이 가능할 것 같다.OTHERS
Related: #62