-
Notifications
You must be signed in to change notification settings - Fork 7
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
[BE/FEAT] 민감 정보 동의 여부 받기 #619
Conversation
|
@Column( | ||
name = ENTITY_PREFIX + "_IS_SENSITIVE_DATA_AGREE", | ||
columnDefinition = "tinyint", | ||
nullable = false) | ||
private Boolean isSensitiveDataAgree = true; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private Boolean isSensitiveDataAgree = true;
이렇게 한게 기본값으로 true가 되게 하려고 한건가요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
애초에 기본값을 true 설정할 필요가 없었네요. 저 true 제거해야할 거 같네요.
@Builder.Default를 추가하고 private Boolean isSensitiveDataAgree = true; 이렇게 해놔야 Builder를 통해 객체 생성 시 자동으로 true로 설정되는 걸로 알고있습니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hwangdaesun
그러면 AgreementEntity의 나머지 필드에 = true 되있는것도 @Builder.Default가 없으니 무용지물 아닌가요?? 지워도 될 것 같은데
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
|
📌관련 이슈
#618
🔑 주요 변경사항