Skip to content

Commit

Permalink
fix: owner rename in methods
Browse files Browse the repository at this point in the history
  • Loading branch information
GODrums committed Sep 4, 2024
1 parent 6f7424a commit 199278e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
@Repository
public interface PullRequestReviewRepository extends JpaRepository<PullRequestReview, Long> {

Optional<PullRequestReview> findByOwner_Login(String ownerLogin);
Optional<PullRequestReview> findByAuthor_Login(String authorLogin);

Optional<PullRequestReview> findByPullRequest(PullRequestReview pullRequest);
}
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public class User extends BaseGitServiceEntity {
@OneToMany(cascade = CascadeType.ALL, mappedBy = "author")
private Set<IssueComment> comments = new HashSet<>();

@OneToMany(cascade = CascadeType.ALL, mappedBy = "owner")
@OneToMany(cascade = CascadeType.ALL, mappedBy = "author")
private Set<PullRequestReview> reviews = new HashSet<>();

public void addComment(IssueComment comment) {
Expand Down

0 comments on commit 199278e

Please sign in to comment.