From dee34d77a78922cc0c6ae31b2e9370a96d0cb851 Mon Sep 17 00:00:00 2001 From: moonyaeyoon Date: Sun, 10 Nov 2024 12:53:02 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20column=20=EC=A1=B0=EA=B1=B4=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/meltingpot/server/domain/entity/comment/Comment.java | 2 +- src/main/java/meltingpot/server/domain/entity/post/Post.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/meltingpot/server/domain/entity/comment/Comment.java b/src/main/java/meltingpot/server/domain/entity/comment/Comment.java index d6a5379..b6255c0 100644 --- a/src/main/java/meltingpot/server/domain/entity/comment/Comment.java +++ b/src/main/java/meltingpot/server/domain/entity/comment/Comment.java @@ -27,7 +27,7 @@ public class Comment extends BaseEntity { @Column(name = "is_anonymous") private boolean isAnonymous = false; - @Column(name = "report_count") + @Column(name = "report_count",nullable = false) private int reportCount; @ManyToOne(fetch = FetchType.LAZY) diff --git a/src/main/java/meltingpot/server/domain/entity/post/Post.java b/src/main/java/meltingpot/server/domain/entity/post/Post.java index f6a9bce..76dcec8 100644 --- a/src/main/java/meltingpot/server/domain/entity/post/Post.java +++ b/src/main/java/meltingpot/server/domain/entity/post/Post.java @@ -42,7 +42,7 @@ public class Post extends BaseEntity { private Boolean isDraft; - @Column(name = "report_count") + @Column(name = "report_count",nullable = false) private int reportCount; @ManyToOne(fetch = FetchType.LAZY)