package com.ssm.manage.entity;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

@Table(name = "img_maintain")
public class ImgMaintain implements Serializable {
    /**
     * 主键ID
     */
    @Id
    private Long id;

    /**
     * 文件名称
     */
    @Column(name = "file_name")
    private String fileName;

    /**
     * 文件路径
     */
    @Column(name = "file_path")
    private String filePath;

    /**
     * 1:静态资源/2:店长/3:员工/4:会员/5:收银
     */
    private Integer type;

    /**
     * 创建者ID
     */
    @Column(name = "funder_id")
    private Long funderId;

    /**
     * 创建者名称
     */
    @Column(name = "funder_name")
    private String funderName;

    /**
     * 创建时间
     */
    @Column(name = "funder_date")
    private Date funderDate;

    private static final long serialVersionUID = 1L;

    /**
     * 获取主键ID
     *
     * @return id - 主键ID
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置主键ID
     *
     * @param id 主键ID
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取文件名称
     *
     * @return file_name - 文件名称
     */
    public String getFileName() {
        return fileName;
    }

    /**
     * 设置文件名称
     *
     * @param fileName 文件名称
     */
    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    /**
     * 获取文件路径
     *
     * @return file_path - 文件路径
     */
    public String getFilePath() {
        return filePath;
    }

    /**
     * 设置文件路径
     *
     * @param filePath 文件路径
     */
    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    /**
     * 获取1:轮播图/2:店长/3:员工/4:会员/5:收银
     *
     * @return type - 1:轮播图/2:店长/3:员工/4:会员/5:收银
     */
    public Integer getType() {
        return type;
    }

    /**
     * 设置1:轮播图/2:店长/3:员工/4:会员/5:收银
     *
     * @param type 1:轮播图/2:店长/3:员工/4:会员/5:收银
     */
    public void setType(Integer type) {
        this.type = type;
    }

    /**
     * 获取创建者ID
     *
     * @return funder_id - 创建者ID
     */
    public Long getFunderId() {
        return funderId;
    }

    /**
     * 设置创建者ID
     *
     * @param funderId 创建者ID
     */
    public void setFunderId(Long funderId) {
        this.funderId = funderId;
    }

    /**
     * 获取创建者名称
     *
     * @return funder_name - 创建者名称
     */
    public String getFunderName() {
        return funderName;
    }

    /**
     * 设置创建者名称
     *
     * @param funderName 创建者名称
     */
    public void setFunderName(String funderName) {
        this.funderName = funderName;
    }

    /**
     * 获取创建时间
     *
     * @return funder_date - 创建时间
     */
    public Date getFunderDate() {
        return funderDate;
    }

    /**
     * 设置创建时间
     *
     * @param funderDate 创建时间
     */
    public void setFunderDate(Date funderDate) {
        this.funderDate = funderDate;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ImgMaintain other = (ImgMaintain) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getFileName() == null ? other.getFileName() == null : this.getFileName().equals(other.getFileName()))
            && (this.getFilePath() == null ? other.getFilePath() == null : this.getFilePath().equals(other.getFilePath()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getFunderId() == null ? other.getFunderId() == null : this.getFunderId().equals(other.getFunderId()))
            && (this.getFunderName() == null ? other.getFunderName() == null : this.getFunderName().equals(other.getFunderName()))
            && (this.getFunderDate() == null ? other.getFunderDate() == null : this.getFunderDate().equals(other.getFunderDate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getFileName() == null) ? 0 : getFileName().hashCode());
        result = prime * result + ((getFilePath() == null) ? 0 : getFilePath().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getFunderId() == null) ? 0 : getFunderId().hashCode());
        result = prime * result + ((getFunderName() == null) ? 0 : getFunderName().hashCode());
        result = prime * result + ((getFunderDate() == null) ? 0 : getFunderDate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", fileName=").append(fileName);
        sb.append(", filePath=").append(filePath);
        sb.append(", type=").append(type);
        sb.append(", funderId=").append(funderId);
        sb.append(", funderName=").append(funderName);
        sb.append(", funderDate=").append(funderDate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}