From a1a1585704b3258e24d71d9f73f129f8b68cf3d3 Mon Sep 17 00:00:00 2001 From: 49EHyeon42 <49ehyeon42@gmail.com> Date: Wed, 28 Aug 2024 13:47:09 +0900 Subject: [PATCH] =?UTF-8?q?hotfix:=20=EB=8F=99=ED=96=89=20=EA=B2=8C?= =?UTF-8?q?=EC=8B=9C=EA=B8=80=20=EB=82=B4=EC=9A=A9=20=ED=83=80=EC=9E=85=20?= =?UTF-8?q?VARCHAR(255)=EC=97=90=EC=84=9C=20TEXT=EB=A1=9C=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../post/entity/AccompanyPostEntity.java | 27 ++++++++++++++----- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/src/main/java/connectripbe/connectrip_be/post/entity/AccompanyPostEntity.java b/src/main/java/connectripbe/connectrip_be/post/entity/AccompanyPostEntity.java index 405aeb38..072ebc20 100644 --- a/src/main/java/connectripbe/connectrip_be/post/entity/AccompanyPostEntity.java +++ b/src/main/java/connectripbe/connectrip_be/post/entity/AccompanyPostEntity.java @@ -2,10 +2,22 @@ import connectripbe.connectrip_be.global.entity.BaseEntity; import connectripbe.connectrip_be.member.entity.MemberEntity; -import jakarta.persistence.*; -import lombok.*; - +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.Lob; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Table; import java.time.LocalDateTime; +import lombok.AccessLevel; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Getter; +import lombok.NoArgsConstructor; @Entity @@ -39,12 +51,14 @@ public class AccompanyPostEntity extends BaseEntity { // fixme-noah: urlQrPath 임시 보류 private String urlQrPath; + @Lob @Column(nullable = false) private String content; // fixme-eric 동행 요청 상태 임시보류 - public AccompanyPostEntity(MemberEntity memberEntity, String title, LocalDateTime startDate, LocalDateTime endDate, String accompanyArea, String customUrl, String urlQrPath, String content) { + public AccompanyPostEntity(MemberEntity memberEntity, String title, LocalDateTime startDate, LocalDateTime endDate, + String accompanyArea, String customUrl, String urlQrPath, String content) { this.memberEntity = memberEntity; this.title = title; this.startDate = startDate; @@ -55,7 +69,8 @@ public AccompanyPostEntity(MemberEntity memberEntity, String title, LocalDateTim this.content = content; } - public void updateAccompanyPost(String title, LocalDateTime startDate, LocalDateTime endDate, String accompanyArea, String content, String customUrl) { + public void updateAccompanyPost(String title, LocalDateTime startDate, LocalDateTime endDate, String accompanyArea, + String content, String customUrl) { this.title = title; this.startDate = startDate; this.endDate = endDate; @@ -63,6 +78,4 @@ public void updateAccompanyPost(String title, LocalDateTime startDate, LocalDate this.content = content; this.customUrl = customUrl; } - - }