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.
💡 작업 내용
💡 자세한 설명
postman 테스트 완료
경로 생성 시, Route-RouteSpot은 서로 참조 관계에 있습니다.
따라서 우선
Route
엔티티를 routeSpots 필드를 null인 상태로 생성 후,initRouteSpots()
메서드를 통해 생성한RouteSpot
엔티티들을 할당시켜 줍니다.또한
Route
의 이름과 관광지 수정 처리는 해당 엔티티 내부에서 이뤄지게 만들었습니다. (캡슐화, 응집도, 객체 자율성 상승)📗 참고 자료 (선택)
📢 리뷰 요구 사항 (선택)
🚩 후속 작업 (선택)
✅ 셀프 체크리스트
closes #26