Ignore:
Timestamp:
02/09/22 15:46:58 (3 years ago)
Author:
Test <matonikolov77@…>
Branches:
main
Children:
8f1b7e9
Parents:
967b414
Message:

Refactored reply repository and discussion repository

File:
1 moved

Legend:

Unmodified
Added
Removed
  • src/main/java/com/wediscussmovies/project/querymodels/GenreLikesQM.java

    r967b414 r6f91f99  
    33import lombok.Data;
    44
    5 import javax.persistence.Entity;
    6 import javax.persistence.Table;
    7 import java.util.Comparator;
    85import java.util.Objects;
    96
    107@Data
    11 public class GenreLikes {
     8public class GenreLikesQM {
    129    private Integer genreId;
    1310    private String name;
    1411    private Long likes;
    1512
    16     public static Comparator<GenreLikes> sorter = Comparator.comparing(GenreLikes::getLikes).thenComparing(GenreLikes::getName).reversed();
     13    //public static Comparator<GenreLikes> sorter = Comparator.comparing(GenreLikes::getLikes).thenComparing(GenreLikes::getName).reversed();
    1714
    18     public GenreLikes(Integer genreId, String name, Long likes) {
     15    public GenreLikesQM(Integer genreId, String name, Long likes) {
    1916        this.genreId = genreId;
    2017        this.name = name;
     
    2724        if (this == o) return true;
    2825        if (o == null || getClass() != o.getClass()) return false;
    29         GenreLikes that = (GenreLikes) o;
     26        GenreLikesQM that = (GenreLikesQM) o;
    3027        return Objects.equals(genreId, that.genreId);
    3128    }
Note: See TracChangeset for help on using the changeset viewer.