-
Notifications
You must be signed in to change notification settings - Fork 0
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
[FIX] popularRate 관련 오류 수정 #81
Conversation
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.
👍👍👍
@@ -64,18 +64,22 @@ public void addFavorite(Favorite favorite) { | |||
favorites.add(favorite); | |||
} | |||
|
|||
@Column(nullable = false) | |||
private int popularRate = 0; |
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.
[P2] int 필드는 null일 수가 없습니다. 따라서 nullable=false를 작성할 필요가 없습니다!
그리고 기본값이 자동으로 0으로 설정됩니다.
하지만 가독성을 위해 0을 적는것도 괜찮은 선택지일 수 있을듯 합니다~
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.
아하 까머것다 캬캬
감사합니당 ~~~!!
@Builder | ||
public Book(String uuid, String favoriteName, String favoriteImage, String title, String description, String backgroundColor, Member member) { | ||
public Book(String uuid, String favoriteName, String favoriteImage, String title, String description, String backgroundColor, Member member, int popularRate) { |
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.
[P3] 지금 현재 생성할 때 popularRate를 넣어주고 있지 않고,
이후에 스케줄링으로 popularRate를 설정해줄 때도 생성할 시점에 값을 넣어주지는 않기 때문에 생성자에 추가한 부분은 없어도 될 것 같습니다!
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.
네엡 !!!
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.
잘했네 막둥이 🙂 👍
📌 관련 이슈
closed #80
✨ 어떤 이유로 변경된 내용인지
🙏 검토 혹은 리뷰어에게 남기고 싶은 말