GETP-185 fix: 피플 프로필이 미등록 상태임에도 등록할 수 없는 오류 수정 #118
Merged
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.
✨ 구현한 기능
📢 논의하고 싶은 내용
@Embeddable
에서, JPA의 구현체로 Hibernate를 사용하는 경우@Embeddable
객체의 모든 필드가null
인 경우 Hibernate는 해당 객체 자체를null
로 설정합니다. 이를 이용해@Embeddable
인PeopleProfile
이null
인 경우 프로필을 등록하지 않은 것으로 판단했습니다. 그러나PeopleProfile
객체의hastags
,techStacks
,portfolios
의 기본값이null
이 아니라 빈ArrayList
이기 때문에 모든 필드가null
이 아님으로 프로필을 등록하지 않아도PeopleProfile
이null
이 아니게 되어 버그가 발생했었습니다. 이를 이번 PR과 같이 수정하였습니다.🎸 기타