From 21d50ad85ec685c944028093f441bcd0f6054b38 Mon Sep 17 00:00:00 2001 From: wjddn2165 Date: Mon, 19 Aug 2024 21:35:18 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=88=9C=ED=99=98=20=EC=B0=B8=EC=A1=B0?= =?UTF-8?q?=20=EC=97=90=EB=9F=AC=EB=A5=BC=20=EB=A7=89=EA=B8=B0=20=EC=9C=84?= =?UTF-8?q?=ED=95=B4=20BaseUser=EC=9D=98=20participants=20=ED=95=84?= =?UTF-8?q?=EB=93=9C=EC=97=90=20@JsonIgnore=20=EC=95=A0=EB=85=B8=ED=85=8C?= =?UTF-8?q?=EC=9D=B4=EC=85=98=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/JGS/CasperEvent/global/entity/BaseUser.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Server/src/main/java/JGS/CasperEvent/global/entity/BaseUser.java b/Server/src/main/java/JGS/CasperEvent/global/entity/BaseUser.java index 038655cb..0dec157b 100644 --- a/Server/src/main/java/JGS/CasperEvent/global/entity/BaseUser.java +++ b/Server/src/main/java/JGS/CasperEvent/global/entity/BaseUser.java @@ -3,6 +3,7 @@ import JGS.CasperEvent.domain.event.entity.participants.LotteryParticipants; import JGS.CasperEvent.domain.event.entity.participants.RushParticipants; import JGS.CasperEvent.global.enums.Role; +import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonManagedReference; import jakarta.persistence.*; import lombok.EqualsAndHashCode; @@ -19,10 +20,12 @@ public class BaseUser extends BaseEntity { @JsonManagedReference @OneToOne(mappedBy = "baseUser", cascade = CascadeType.ALL) + @JsonIgnore private LotteryParticipants lotteryParticipants; @JsonManagedReference @OneToOne(mappedBy = "baseUser", cascade = CascadeType.ALL) + @JsonIgnore private RushParticipants rushParticipants; public void updateLotteryParticipants(LotteryParticipants lotteryParticipant) {