-
Notifications
You must be signed in to change notification settings - Fork 3
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] Weight CRUD 구현 #32
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
특정 반려동물의 체중 기록 중 체중의 id(pk)값으로 상세 기록을 조회
체중값, 기록시간을 변경 하는 메서드를 엔티티 내부에 구현 실제 값의 변경은 해당 메서드를 통해서 실행됨
실제 변경은 Weight 엔티티의 update() 메서드를 통해 실행
[domain 패키지 -> entity 패키지] 이름 변경, mapper 패키지 위치 이동
기존 dto 패키지 삭제, entity 하위에 response, request 패키지 생성 및 관련 클래스 이동
기존 [memo] -> 변경후 [description]
기존 빌더 패턴에서 모든 필드값을 받는 생성자로 변경 엔티티의 모든 필드값이 notnull 이므로 빌더패턴 대신 @AllArgsConstructor 사용
primitive -> wrapper
체중 엔티티 내부에 검증 로직을 구현
변경하려는 체중의 petId 검증
spring-boot-starter-validation 추가
request dto와 컨트롤러 메서드에 검증 추가
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
#️⃣ 연관된 이슈
Closes #8
📝 작업 내용
📷 스크린샷 (선택)
💬 리뷰 요구사항(선택)