diff --git a/src/main/java/org/sopt/app/domain/entity/soptamp/Mission.java b/src/main/java/org/sopt/app/domain/entity/soptamp/Mission.java index 7adde025..59a6932f 100755 --- a/src/main/java/org/sopt/app/domain/entity/soptamp/Mission.java +++ b/src/main/java/org/sopt/app/domain/entity/soptamp/Mission.java @@ -2,8 +2,10 @@ import io.hypersistence.utils.hibernate.type.array.ListArrayType; import jakarta.persistence.*; +import jakarta.validation.constraints.NotNull; import java.util.List; import lombok.*; +import org.hibernate.annotations.ColumnDefault; import org.hibernate.annotations.Type; @Entity @@ -18,10 +20,14 @@ public class Mission { @Column(name = "mission_id") private Long id; + @NotNull private String title; + @NotNull private Integer level; + @NotNull + @ColumnDefault("false") private boolean display; @Type(value= ListArrayType.class)