diff --git a/backend/src/main/java/com/festago/festival/domain/Festival.java b/backend/src/main/java/com/festago/festival/domain/Festival.java index 64602cc87..4d2a013d2 100644 --- a/backend/src/main/java/com/festago/festival/domain/Festival.java +++ b/backend/src/main/java/com/festago/festival/domain/Festival.java @@ -39,6 +39,7 @@ public class Festival extends BaseTimeEntity { @Size(max = 255) private String thumbnail; + @NotNull @ManyToOne(fetch = FetchType.LAZY) private School school; diff --git a/backend/src/main/java/com/festago/ticket/domain/Ticket.java b/backend/src/main/java/com/festago/ticket/domain/Ticket.java index fe873d0ff..67f1604cf 100644 --- a/backend/src/main/java/com/festago/ticket/domain/Ticket.java +++ b/backend/src/main/java/com/festago/ticket/domain/Ticket.java @@ -39,6 +39,7 @@ public class Ticket extends BaseTimeEntity { @ManyToOne(fetch = FetchType.LAZY) private Stage stage; + @NotNull private Long schoolId; @NotNull