source: Git/src/main/java/com/wediscussmovies/project/querymodels/DiscussionLikesQM.java@ 6f91f99

main
Last change on this file since 6f91f99 was 6f91f99, checked in by Test <matonikolov77@…>, 2 years ago

Refactored reply repository and discussion repository

  • Property mode set to 100644
File size: 797 bytes
Line 
1package com.wediscussmovies.project.querymodels;
2
3import lombok.Data;
4
5import java.util.Objects;
6
7@Data
8public class DiscussionLikesQM {
9 private Integer discussionId;
10 private Long likes;
11
12 public DiscussionLikesQM(Integer discussionId, Long likes) {
13 this.discussionId = discussionId;
14 this.likes = likes;
15 }
16
17 public DiscussionLikesQM() {
18 }
19
20 @Override
21 public boolean equals(Object o) {
22 if (this == o) return true;
23 if (o == null || getClass() != o.getClass()) return false;
24 DiscussionLikesQM that = (DiscussionLikesQM) o;
25 return Objects.equals(discussionId, that.discussionId) && Objects.equals(likes, that.likes);
26 }
27
28 @Override
29 public int hashCode() {
30 return Objects.hash(discussionId, likes);
31 }
32}
Note: See TracBrowser for help on using the repository browser.