Skip to content

Commit

Permalink
Merge pull request #103 from 100-hours-a-week/hotfix/accompany-post-c…
Browse files Browse the repository at this point in the history
…ontent-type

hotfix: 동행 게시글 내용 타입 VARCHAR(255)에서 TEXT로 변경
  • Loading branch information
sen2y authored Aug 28, 2024
2 parents 272eaf6 + a1a1585 commit 423df05
Showing 1 changed file with 20 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand All @@ -55,14 +69,13 @@ 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;
this.accompanyArea = accompanyArea;
this.content = content;
this.customUrl = customUrl;
}


}

0 comments on commit 423df05

Please sign in to comment.