Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
import com.fasterxml.jackson.annotation.JsonBackReference;
import lombok.*;

import java.util.Objects;


@Entity
@Getter
Expand Down Expand Up @@ -38,7 +40,12 @@ public class Notification extends BaseTimeEntity {

public Notification(){
}
@Builder
public Notification(Member receiver, AnswerComment comment, String content, boolean isRead) {
Objects.requireNonNull(receiver, "Receiver가 null입니다.");
Objects.requireNonNull(comment, "Comment가 null입니다.");
Objects.requireNonNull(content, "content가 null입니다.");

this.receiver = receiver;
this.comment = comment;
this.content = content;
Expand Down