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<>(); }