package com.huimv.eartag.dao.entity;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Date;
import java.sql.Timestamp;

@Entity
@Table(name = "eartar_farm_all_status")
public class EartarFarmAllStatusEntity implements Serializable {

    private static final long serialVersionUID = 1L;

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

    @Column(name = "device_total")
    private Integer deviceTotal;

    @Column(name = "device_online")
    private Integer deviceOnline;

    @Column(name = "device_offline")
    private Integer deviceOffline;

    @Column(name = "device_rate")
    private Float deviceRate;

    @Column(name = "device_cancel")
    private Integer deviceCancel;

    @Column(name = "eartag_total")
    private Integer eartagTotal;

    @Column(name = "eartag_online")
    private Integer eartagOnline;

    @Column(name = "eartag_rate")
    private Float eartagRate;

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

    @Column(name = "update_time")
    private Timestamp updateTime;

    @Column(name = "create_date")
    private Date createDate;

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

    public Integer getId() {
        return id;
    }

    public void setDeviceTotal(Integer deviceTotal) {
        this.deviceTotal = deviceTotal;
    }

    public Integer getDeviceTotal() {
        return deviceTotal;
    }

    public void setDeviceOnline(Integer deviceOnline) {
        this.deviceOnline = deviceOnline;
    }

    public Integer getDeviceOnline() {
        return deviceOnline;
    }

    public void setDeviceOffline(Integer deviceOffline) {
        this.deviceOffline = deviceOffline;
    }

    public Integer getDeviceOffline() {
        return deviceOffline;
    }

    public void setDeviceRate(Float deviceRate) {
        this.deviceRate = deviceRate;
    }

    public Float getDeviceRate() {
        return deviceRate;
    }

    public void setDeviceCancel(Integer deviceCancel) {
        this.deviceCancel = deviceCancel;
    }

    public Integer getDeviceCancel() {
        return deviceCancel;
    }

    public void setEartagTotal(Integer eartagTotal) {
        this.eartagTotal = eartagTotal;
    }

    public Integer getEartagTotal() {
        return eartagTotal;
    }

    public void setEartagOnline(Integer eartagOnline) {
        this.eartagOnline = eartagOnline;
    }

    public Integer getEartagOnline() {
        return eartagOnline;
    }

    public void setEartagRate(Float eartagRate) {
        this.eartagRate = eartagRate;
    }

    public Float getEartagRate() {
        return eartagRate;
    }

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

    public String getFarmId() {
        return farmId;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getCreateDate() {
        return createDate;
    }

    @Override
    public String toString() {
        return "EartarFarmAllStatusEntity{" +
                "id=" + id + '\'' +
                "deviceTotal=" + deviceTotal + '\'' +
                "deviceOnline=" + deviceOnline + '\'' +
                "deviceOffline=" + deviceOffline + '\'' +
                "deviceRate=" + deviceRate + '\'' +
                "deviceCancel=" + deviceCancel + '\'' +
                "eartagTotal=" + eartagTotal + '\'' +
                "eartagOnline=" + eartagOnline + '\'' +
                "eartagRate=" + eartagRate + '\'' +
                "farmId=" + farmId + '\'' +
                "updateTime=" + updateTime + '\'' +
                "createDate=" + createDate + '\'' +
                '}';
    }
}
