package com.huimv.produce.produce.entity;

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

@Entity
@Table(name = "prod_indicator_dynamic")
public class ProdIndicatorDynamicEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id", nullable = false)
    private Integer id;

    @Column(name = "total")
    private Integer total;

    @Column(name = "up")
    private Integer up;

    @Column(name = "down")
    private Integer down;

    @Column(name = "flat")
    private Integer flat;

    @Column(name = "farm_id")
    private Integer farmId;

    @Column(name = "year")
    private Integer year;

    @Column(name = "month")
    private Integer month;

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public Integer getTotal() {
        return total;
    }

    public void setUp(Integer up) {
        this.up = up;
    }

    public Integer getUp() {
        return up;
    }

    public void setDown(Integer down) {
        this.down = down;
    }

    public Integer getDown() {
        return down;
    }

    public void setFlat(Integer flat) {
        this.flat = flat;
    }

    public Integer getFlat() {
        return flat;
    }

    public void setFarmId(Integer farmId) {
        this.farmId = farmId;
    }

    public Integer getFarmId() {
        return farmId;
    }

    public void setYear(Integer year) {
        this.year = year;
    }

    public Integer getYear() {
        return year;
    }

    public void setMonth(Integer month) {
        this.month = month;
    }

    public Integer getMonth() {
        return month;
    }

    @Override
    public String toString() {
        return "ProdIndicatorDynamicEntity{" +
                "id=" + id + '\'' +
                "total=" + total + '\'' +
                "up=" + up + '\'' +
                "down=" + down + '\'' +
                "flat=" + flat + '\'' +
                "farmId=" + farmId + '\'' +
                "year=" + year + '\'' +
                "month=" + month + '\'' +
                '}';
    }
}
