From 13647f5c2bea2773449f3ce72cf03551565af9f5 Mon Sep 17 00:00:00 2001 From: mac_daehwan2yo Date: Tue, 28 Dec 2021 14:51:50 +0900 Subject: [PATCH] =?UTF-8?q?=20=F0=9F=93=88[UPDATE]-#10-=08=EB=B3=80?= =?UTF-8?q?=EC=88=98=EB=AA=85=20=EB=B3=80=EA=B2=BD=20=EB=B0=8F=20=EC=97=AC?= =?UTF-8?q?=ED=96=89=20=EA=B8=B0=EA=B0=84=20=EC=A1=B0=ED=9A=8C=20=EB=A1=9C?= =?UTF-8?q?=EC=A7=81=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 개요 --- .../codingwasabi/trti/domain/party/model/Party.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/codingwasabi/trti/domain/party/model/Party.java b/src/main/java/com/codingwasabi/trti/domain/party/model/Party.java index ae5c725..c27dc64 100644 --- a/src/main/java/com/codingwasabi/trti/domain/party/model/Party.java +++ b/src/main/java/com/codingwasabi/trti/domain/party/model/Party.java @@ -33,7 +33,7 @@ public class Party extends Period { private Member captain; @ManyToOne(fetch = FetchType.LAZY) - private City location; + private City city; public void setCaptain(Member member) { // Error code @@ -44,7 +44,11 @@ public void setCaptain(Member member) { this.captain = member; } - public void setLocation(City city) { - this.location = city; + public void setCity(City city) { + this.city = city; + } + + public String[] getPeriod() { + return new String[] {startDate, endDate}; } }