From 3081021fc2b9aaa710eca22965d0190d6aa8f503 Mon Sep 17 00:00:00 2001 From: yumzen Date: Fri, 20 Sep 2024 23:29:31 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=ED=8F=AC=ED=8A=B8=ED=8F=B4=EB=A6=AC?= =?UTF-8?q?=EC=98=A4=20=EC=9D=B4=EB=A6=84=20=ED=95=84=EB=93=9C=20=EC=82=AD?= =?UTF-8?q?=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gongjakso/server/domain/apply/dto/response/ApplyRes.java | 4 ++-- .../domain/portfolio/dto/response/SimplePortfolioRes.java | 4 ++-- .../gongjakso/server/domain/portfolio/entity/Portfolio.java | 3 --- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/gongjakso/server/domain/apply/dto/response/ApplyRes.java b/src/main/java/com/gongjakso/server/domain/apply/dto/response/ApplyRes.java index 0a87a3fb..b80789ff 100644 --- a/src/main/java/com/gongjakso/server/domain/apply/dto/response/ApplyRes.java +++ b/src/main/java/com/gongjakso/server/domain/apply/dto/response/ApplyRes.java @@ -28,7 +28,7 @@ public record ApplyRes( Long portfolioId, @Nullable - String portfolioTitle, + String portfolioName, Boolean isPrivate, @@ -68,7 +68,7 @@ public static ApplyRes of(Apply apply) { .memberId(apply.getMember().getId()) .leaderName(apply.getTeam().getMember().getName()) .portfolioId(apply.getPortfolioInfo().getPortfolio() != null ? apply.getPortfolioInfo().getPortfolio().getId() : null) - .portfolioTitle(apply.getPortfolioInfo().getPortfolio() != null ? apply.getPortfolioInfo().getPortfolio().getTitle() : null) + .portfolioName(apply.getPortfolioInfo().getPortfolio() != null ? apply.getPortfolioInfo().getPortfolio().getPortfolioData().portfolioName() : null) .isPrivate(apply.getPortfolioInfo().isPrivate()) .body(apply.getBody()) .status(apply.getStatus().getDescription()) diff --git a/src/main/java/com/gongjakso/server/domain/portfolio/dto/response/SimplePortfolioRes.java b/src/main/java/com/gongjakso/server/domain/portfolio/dto/response/SimplePortfolioRes.java index d6daf3b5..ee50e30d 100644 --- a/src/main/java/com/gongjakso/server/domain/portfolio/dto/response/SimplePortfolioRes.java +++ b/src/main/java/com/gongjakso/server/domain/portfolio/dto/response/SimplePortfolioRes.java @@ -6,13 +6,13 @@ public record SimplePortfolioRes( Long PortfolioId, - String PortfolioTitle, + String PortfolioName, LocalDateTime modifiedAt ) { public static SimplePortfolioRes of(Portfolio portfolio) { return new SimplePortfolioRes( portfolio.getId(), - portfolio.getTitle(), + portfolio.getPortfolioData().portfolioName(), portfolio.getModifiedAt() ); } diff --git a/src/main/java/com/gongjakso/server/domain/portfolio/entity/Portfolio.java b/src/main/java/com/gongjakso/server/domain/portfolio/entity/Portfolio.java index 0e3e2338..9de2a751 100644 --- a/src/main/java/com/gongjakso/server/domain/portfolio/entity/Portfolio.java +++ b/src/main/java/com/gongjakso/server/domain/portfolio/entity/Portfolio.java @@ -25,9 +25,6 @@ public class Portfolio extends BaseTimeEntity { @Column(name = "portfolio_id", nullable = false, columnDefinition = "bigint") private Long id; - @Column(name = "title", nullable = false, columnDefinition = "varchar(50)") - private String title; - @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "member_id") private Member member;