博主头像
LUCKYSHEEPS

小心翼翼

SysMovie.java

package com.rabbiter.cm.domain;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Objects;

public class SysMovie implements Serializable {
    private static final Long serialVersionUID = 1L;

    private Long movieId;


    @NotNull(message = "电影名称不能为空")
    private String mocieName;

    private Integer mocieLength;

    private String mociePoster;

    private String movieArea;

    private Date releaseDate;

    private Double movieBoxOffice;

    private String movieIntroduction;

    private String movviePictures;

    private List<SysMovieCategory> movieCategoryList;
    public SysMovie(){}

    @Override
    public String toString() {
        return "SysMovie{" +
                "movieId=" + movieId +
                ", mocieName='" + mocieName + '\'' +
                ", mocieLength=" + mocieLength +
                ", mociePoster='" + mociePoster + '\'' +
                ", movieArea='" + movieArea + '\'' +
                ", releaseDate=" + releaseDate +
                ", movieBoxOffice=" + movieBoxOffice +
                ", movieIntroduction='" + movieIntroduction + '\'' +
                ", movviePictures='" + movviePictures + '\'' +
                ", movieCategoryList=" + movieCategoryList +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o==null||getClass()!=o.getClass()) return false;
        SysMovie sysMovie = (SysMovie) o;
        return Objects.equals(movieId, sysMovie.movieId) && Objects.equals(mocieName, sysMovie.mocieName) && Objects.equals(mocieLength, sysMovie.mocieLength) && Objects.equals(mociePoster, sysMovie.mociePoster) && Objects.equals(movieArea, sysMovie.movieArea) && Objects.equals(releaseDate, sysMovie.releaseDate) && Objects.equals(movieBoxOffice, sysMovie.movieBoxOffice) && Objects.equals(movieIntroduction, sysMovie.movieIntroduction) && Objects.equals(movviePictures, sysMovie.movviePictures) && Objects.equals(movieCategoryList, sysMovie.movieCategoryList);
    }

    @Override
    public int hashCode() {
        return Objects.hash(movieId, mocieName, mocieLength, mociePoster, movieArea, releaseDate, movieBoxOffice, movieIntroduction, movviePictures, movieCategoryList);
    }

    public SysMovie(Long movieId, String mocieName, Integer mocieLength, String mociePoster, String movieArea, Date releaseDate, Double movieBoxOffice, String movieIntroduction, String movviePictures, List<SysMovieCategory> movieCategoryList) {
        this.movieId = movieId;
        this.mocieName = mocieName;
        this.mocieLength = mocieLength;
        this.mociePoster = mociePoster;
        this.movieArea = movieArea;
        this.releaseDate = releaseDate;
        this.movieBoxOffice = movieBoxOffice;
        this.movieIntroduction = movieIntroduction;
        this.movviePictures = movviePictures;
        this.movieCategoryList = movieCategoryList;
    }

    public Long getMovieId() {
        return movieId;
    }

    public void setMovieId(Long movieId) {
        this.movieId = movieId;
    }

    public @NotNull(message = "电影名称不能为空") String getMocieName() {
        return mocieName;
    }

    public void setMocieName(@NotNull(message = "电影名称不能为空") String mocieName) {
        this.mocieName = mocieName;
    }

    public Integer getMocieLength() {
        return mocieLength;
    }

    public void setMocieLength(Integer mocieLength) {
        this.mocieLength = mocieLength;
    }

    public String getMociePoster() {
        return mociePoster;
    }

    public void setMociePoster(String mociePoster) {
        this.mociePoster = mociePoster;
    }

    public String getMovieArea() {
        return movieArea;
    }

    public void setMovieArea(String movieArea) {
        this.movieArea = movieArea;
    }

    public Date getReleaseDate() {
        return releaseDate;
    }

    public void setReleaseDate(Date releaseDate) {
        this.releaseDate = releaseDate;
    }

    public Double getMovieBoxOffice() {
        return movieBoxOffice;
    }

    public void setMovieBoxOffice(Double movieBoxOffice) {
        this.movieBoxOffice = movieBoxOffice;
    }

    public String getMovieIntroduction() {
        return movieIntroduction;
    }

    public void setMovieIntroduction(String movieIntroduction) {
        this.movieIntroduction = movieIntroduction;
    }

    public String getMovviePictures() {
        return movviePictures;
    }

    public void setMovviePictures(String movviePictures) {
        this.movviePictures = movviePictures;
    }

    public List<SysMovieCategory> getMovieCategoryList() {
        return movieCategoryList;
    }

    public void setMovieCategoryList(List<SysMovieCategory> movieCategoryList) {
        this.movieCategoryList = movieCategoryList;
    }
}
SysMovie.java
https://luckysheeps.com/index.php/archives/4/
本文作者
发布时间 2024-12-05
许可协议 CC BY-NC-SA 4.0
发表新评论