package com.huimv.eartag.dao.entity;

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

@Entity
@Table(name = "eartag_device_day_status")
public class EartagDeviceDayStatusEntity implements Serializable {

    private static final long serialVersionUID = 1L;

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

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

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

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

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

    @Column(name = "online_rate")
    private Float onlineRate;

    @Column(name = "add_date")
    private Date addDate;

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

    public Integer getId() {
        return id;
    }

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

    public Integer getFarmId() {
        return farmId;
    }

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

    public Integer getTotal() {
        return total;
    }

    public void setOnline(Integer online) {
        this.online = online;
    }

    public Integer getOnline() {
        return online;
    }

    public void setOffline(Integer offline) {
        this.offline = offline;
    }

    public Integer getOffline() {
        return offline;
    }

    public void setOnlineRate(Float onlineRate) {
        this.onlineRate = onlineRate;
    }

    public Float getOnlineRate() {
        return onlineRate;
    }

    public void setAddDate(Date addDate) {
        this.addDate = addDate;
    }

    public Date getAddDate() {
        return addDate;
    }

    @Override
    public String toString() {
        return "EartagDeviceDayStatusEntity{" +
                "id=" + id + '\'' +
                "farmId=" + farmId + '\'' +
                "total=" + total + '\'' +
                "online=" + online + '\'' +
                "offline=" + offline + '\'' +
                "onlineRate=" + onlineRate + '\'' +
                "addDate=" + addDate + '\'' +
                '}';
    }
}
