Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class Actor {
private String actorName;

@OneToMany(mappedBy = "actor", cascade = ALL)
private List<ActorAppearances> actorAppearances = new ArrayList<>();
private List<ActorAppearances> actorAppearanceList = new ArrayList<>();

@Builder
private Actor(String actorName) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ private void setContents(Contents contents) {
}
private void setActor(Actor actor) {
this.actor = actor;
actor.getActorAppearances().add(this);
actor.getActorAppearanceList().add(this);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public AppearancePageResponse getAppearanceByName(String actorName, Pageable pag
.orElseThrow(() -> new RuntimeException("Actor not found"));

// 배우 출연작으로 총 작품 수 작품 조회
int totalSize = actor.getActorAppearances().size();
int totalSize = actor.getActorAppearanceList().size();

// 페이징을 위해 limit와 offset을 적용해서 조회
List<Contents> contentsByActorName = contentsRepository.findContentsByActorName(
Expand Down
Loading