From 46439259080782d0436952cb6e00c6c47009f05d Mon Sep 17 00:00:00 2001 From: Anna-Jin Date: Mon, 11 Jul 2022 19:12:31 +0900 Subject: [PATCH] =?UTF-8?q?#16=20[Fix]=20=EC=88=98=EC=A0=95=20=EC=82=AC?= =?UTF-8?q?=ED=95=AD=20=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/mpnp/baechelin/user/dto/UserInfoResponseDto.java | 2 +- src/main/java/com/mpnp/baechelin/user/entity/user/User.java | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/main/java/com/mpnp/baechelin/user/dto/UserInfoResponseDto.java b/src/main/java/com/mpnp/baechelin/user/dto/UserInfoResponseDto.java index 5b8775a..6785642 100644 --- a/src/main/java/com/mpnp/baechelin/user/dto/UserInfoResponseDto.java +++ b/src/main/java/com/mpnp/baechelin/user/dto/UserInfoResponseDto.java @@ -24,7 +24,7 @@ public class UserInfoResponseDto { public UserInfoResponseDto(User user) { this.name = user.getName(); - this.reviewList = user.getReviewList().stream().map(ReviewResponseDto::new).collect(Collectors.toList()); + this.reviewList = user.getReviewsList().stream().map(ReviewResponseDto::new).collect(Collectors.toList()); this.bookmarkFolderList = user.getFolderList().stream().map(BookmarkFolderResponseDto::new).collect(Collectors.toList()); //folder diff --git a/src/main/java/com/mpnp/baechelin/user/entity/user/User.java b/src/main/java/com/mpnp/baechelin/user/entity/user/User.java index 3e34a65..47d1ef4 100644 --- a/src/main/java/com/mpnp/baechelin/user/entity/user/User.java +++ b/src/main/java/com/mpnp/baechelin/user/entity/user/User.java @@ -79,10 +79,4 @@ public User(String socialId, this.providerType = providerType; this.roleType = roleType; } - - @OneToMany(mappedBy = "userId", cascade = CascadeType.ALL, orphanRemoval = true) - private List reviewList; - - @OneToMany(mappedBy = "userId", cascade = CascadeType.ALL, orphanRemoval = true) - private List folderList = new ArrayList<>(); }