diff --git a/server/application-server/src/main/java/de/tum/in/www1/hephaestus/codereview/pullrequest/review/PullRequestReviewRepository.java b/server/application-server/src/main/java/de/tum/in/www1/hephaestus/codereview/pullrequest/review/PullRequestReviewRepository.java index db849627..99956827 100644 --- a/server/application-server/src/main/java/de/tum/in/www1/hephaestus/codereview/pullrequest/review/PullRequestReviewRepository.java +++ b/server/application-server/src/main/java/de/tum/in/www1/hephaestus/codereview/pullrequest/review/PullRequestReviewRepository.java @@ -8,7 +8,7 @@ @Repository public interface PullRequestReviewRepository extends JpaRepository { - Optional findByOwner_Login(String ownerLogin); + Optional findByAuthor_Login(String authorLogin); Optional findByPullRequest(PullRequestReview pullRequest); } diff --git a/server/application-server/src/main/java/de/tum/in/www1/hephaestus/codereview/user/User.java b/server/application-server/src/main/java/de/tum/in/www1/hephaestus/codereview/user/User.java index 073fc20c..6f08e353 100644 --- a/server/application-server/src/main/java/de/tum/in/www1/hephaestus/codereview/user/User.java +++ b/server/application-server/src/main/java/de/tum/in/www1/hephaestus/codereview/user/User.java @@ -62,7 +62,7 @@ public class User extends BaseGitServiceEntity { @OneToMany(cascade = CascadeType.ALL, mappedBy = "author") private Set comments = new HashSet<>(); - @OneToMany(cascade = CascadeType.ALL, mappedBy = "owner") + @OneToMany(cascade = CascadeType.ALL, mappedBy = "author") private Set reviews = new HashSet<>(); public void addComment(IssueComment comment) {