From cdbf1d8597c3bb7d95147a364ea65c852fc0b3fe Mon Sep 17 00:00:00 2001 From: hyeon-z Date: Fri, 1 Dec 2023 15:58:27 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=ED=96=89=EC=82=AC,=20=ED=8F=BC=20?= =?UTF-8?q?=EA=B4=80=EB=A0=A8=20=EC=B5=9C=EB=8C=80=20=EA=B8=80=EC=9E=90=20?= =?UTF-8?q?=EC=88=98=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/spaceclub/event/domain/EventInfo.java | 4 +++- src/main/java/com/spaceclub/form/domain/Form.java | 1 + src/main/java/com/spaceclub/form/domain/FormAnswer.java | 1 + src/main/java/com/spaceclub/form/domain/FormOption.java | 1 + src/test/java/com/spaceclub/event/domain/EventInfoTest.java | 2 +- 5 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/spaceclub/event/domain/EventInfo.java b/src/main/java/com/spaceclub/event/domain/EventInfo.java index 16e54862..aa175938 100644 --- a/src/main/java/com/spaceclub/event/domain/EventInfo.java +++ b/src/main/java/com/spaceclub/event/domain/EventInfo.java @@ -1,5 +1,6 @@ package com.spaceclub.event.domain; +import jakarta.persistence.Column; import jakarta.persistence.Embeddable; import jakarta.persistence.Lob; import lombok.AccessLevel; @@ -22,7 +23,7 @@ public class EventInfo { private static final int TITLE_MAX_LENGTH = 30; - private static final int CONTENT_MAX_LENGTH = 200; + private static final int CONTENT_MAX_LENGTH = 1000; private static final int LOCATION_MAX_LENGTH = 30; @@ -33,6 +34,7 @@ public class EventInfo { @Getter private String title; + @Column(length = 1000) @Getter private String content; diff --git a/src/main/java/com/spaceclub/form/domain/Form.java b/src/main/java/com/spaceclub/form/domain/Form.java index a590c96c..b12098ce 100644 --- a/src/main/java/com/spaceclub/form/domain/Form.java +++ b/src/main/java/com/spaceclub/form/domain/Form.java @@ -32,6 +32,7 @@ public class Form extends BaseTimeEntity { private Long id; @Getter + @Column(length = 1000) private String description; @Getter diff --git a/src/main/java/com/spaceclub/form/domain/FormAnswer.java b/src/main/java/com/spaceclub/form/domain/FormAnswer.java index 5f96528d..691af5dc 100644 --- a/src/main/java/com/spaceclub/form/domain/FormAnswer.java +++ b/src/main/java/com/spaceclub/form/domain/FormAnswer.java @@ -36,6 +36,7 @@ public class FormAnswer extends BaseTimeEntity { private Long userId; @Getter + @Column(length = 1000) private String content; @Builder diff --git a/src/main/java/com/spaceclub/form/domain/FormOption.java b/src/main/java/com/spaceclub/form/domain/FormOption.java index 80faea05..28c1080e 100644 --- a/src/main/java/com/spaceclub/form/domain/FormOption.java +++ b/src/main/java/com/spaceclub/form/domain/FormOption.java @@ -35,6 +35,7 @@ public class FormOption { private Long id; @Getter + @Column(length = 1000) private String title; @Getter diff --git a/src/test/java/com/spaceclub/event/domain/EventInfoTest.java b/src/test/java/com/spaceclub/event/domain/EventInfoTest.java index 0b02cc44..6f49028e 100644 --- a/src/test/java/com/spaceclub/event/domain/EventInfoTest.java +++ b/src/test/java/com/spaceclub/event/domain/EventInfoTest.java @@ -18,7 +18,7 @@ class EventInfoTest { private static final String TITLE_MAX_LENGTH = "값".repeat(31); - private static final String CONTENT_MAX_LENGTH = "값".repeat(201); + private static final String CONTENT_MAX_LENGTH = "값".repeat(1001); private static final String LOCATION_MAX_LENGTH = "값".repeat(31);