package com.huimv.eartag.dao.entity;

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

@Entity
@Table(name = "eartag_eartag_online")
public class EartagEartagOnlineEntity implements Serializable {

    private static final long serialVersionUID = 1L;

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

    @Column(name = "earmark")
    private String earmark;

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

    @Column(name = "first_time")
    private Timestamp firstTime;

    @Column(name = "last_time")
    private Timestamp lastTime;

    @Column(name = "env_temp")
    private String envTemp;

    @Column(name = "eartag_temp")
    private String eartagTemp;

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

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

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

    public Integer getId() {
        return id;
    }

    public void setEarmark(String earmark) {
        this.earmark = earmark;
    }

    public String getEarmark() {
        return earmark;
    }

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

    public Integer getTotal() {
        return total;
    }

    public void setFirstTime(Timestamp firstTime) {
        this.firstTime = firstTime;
    }

    public Timestamp getFirstTime() {
        return firstTime;
    }

    public void setLastTime(Timestamp lastTime) {
        this.lastTime = lastTime;
    }

    public Timestamp getLastTime() {
        return lastTime;
    }

    public void setEnvTemp(String envTemp) {
        this.envTemp = envTemp;
    }

    public String getEnvTemp() {
        return envTemp;
    }

    public void setEartagTemp(String eartagTemp) {
        this.eartagTemp = eartagTemp;
    }

    public String getEartagTemp() {
        return eartagTemp;
    }

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

    public Date getAddDate() {
        return addDate;
    }

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

    public String getFarmId() {
        return farmId;
    }

    @Override
    public String toString() {
        return "EartagEartagOnlineEntity{" +
                "id=" + id + '\'' +
                "earmark=" + earmark + '\'' +
                "total=" + total + '\'' +
                "firstTime=" + firstTime + '\'' +
                "lastTime=" + lastTime + '\'' +
                "envTemp=" + envTemp + '\'' +
                "eartagTemp=" + eartagTemp + '\'' +
                "addDate=" + addDate + '\'' +
                "farmId=" + farmId + '\'' +
                '}';
    }
}
