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.
📄 Work Description
CompanyName
VO를 구현했습니다.value
를 가지고 있으며, 생성 시 유효성 검증을 수행합니다.from()
을 통해 생성하도록 제한하였습니다.equals
,hashCode
,toString
을 오버라이드했습니다.💭 Thoughts
유효성 검증 책임을 한 곳에 집중하도록 설계했습니다.
각 검증을
init
블록에서 직접 호출하여 의도를 더 잘 드러내는 방식으로 구성했습니다.InternshipException
을 통해 처리하고,InternshipErrorCode
항목을 별도로 정의해도메인 일관성과 API 응답 처리의 명확성을 함께 고려했습니다.
✅ Testing Result
🗂 Related Issue