Skip to content

Commit

Permalink
#16 [Fix] 수정 사항 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
Anna-Jin committed Jul 11, 2022
1 parent 37744cf commit 4643925
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 0 additions & 6 deletions src/main/java/com/mpnp/baechelin/user/entity/user/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,4 @@ public User(String socialId,
this.providerType = providerType;
this.roleType = roleType;
}

@OneToMany(mappedBy = "userId", cascade = CascadeType.ALL, orphanRemoval = true)
private List<Review> reviewList;

@OneToMany(mappedBy = "userId", cascade = CascadeType.ALL, orphanRemoval = true)
private List<Folder> folderList = new ArrayList<>();
}

0 comments on commit 4643925

Please sign in to comment.