main
Last change
on this file since 8f1b7e9 was c02189f, checked in by Petar Partaloski <ppartaloski@…>, 3 years ago |
Added new core functionalities, fixed bugs and improved visual clarity
|
-
Property mode
set to
100644
|
File size:
702 bytes
|
Line | |
---|
1 | package com.wediscussmovies.project.querymodels;
|
---|
2 |
|
---|
3 | import lombok.Data;
|
---|
4 |
|
---|
5 | import java.util.Objects;
|
---|
6 |
|
---|
7 | @Data
|
---|
8 | public class MovieLikesQM {
|
---|
9 | private Integer movieId;
|
---|
10 | private Long likes;
|
---|
11 |
|
---|
12 | public MovieLikesQM(Integer movieId, Long likes) {
|
---|
13 | this.movieId = movieId;
|
---|
14 | this.likes = likes;
|
---|
15 | }
|
---|
16 |
|
---|
17 | @Override
|
---|
18 | public boolean equals(Object o) {
|
---|
19 | if (this == o) return true;
|
---|
20 | if (o == null || getClass() != o.getClass()) return false;
|
---|
21 | MovieLikesQM that = (MovieLikesQM) o;
|
---|
22 | return Objects.equals(movieId, that.movieId) && Objects.equals(likes, that.likes);
|
---|
23 | }
|
---|
24 |
|
---|
25 | @Override
|
---|
26 | public int hashCode() {
|
---|
27 | return Objects.hash(movieId, likes);
|
---|
28 | }
|
---|
29 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.