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_register")
public class EartagEartagRegisterEntity 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 = "first_time")
    private Timestamp firstTime;

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

    @Column(name = "first_device")
    private String firstDevice;

    @Column(name = "belong_device")
    private String belongDevice;

    @Column(name = "last_device")
    private String lastDevice;

    @Column(name = "register_time")
    private Timestamp registerTime;

    @Column(name = "register_type")
    private Integer registerType;

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

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

    @Column(name = "active_status")
    private Integer activeStatus;

    @Column(name = "active_time")
    private Timestamp activeTime;

    @Column(name = "live_status")
    private Integer liveStatus;

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

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

    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 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 setFirstDevice(String firstDevice) {
        this.firstDevice = firstDevice;
    }

    public String getFirstDevice() {
        return firstDevice;
    }

    public void setBelongDevice(String belongDevice) {
        this.belongDevice = belongDevice;
    }

    public String getBelongDevice() {
        return belongDevice;
    }

    public void setLastDevice(String lastDevice) {
        this.lastDevice = lastDevice;
    }

    public String getLastDevice() {
        return lastDevice;
    }

    public void setRegisterTime(Timestamp registerTime) {
        this.registerTime = registerTime;
    }

    public Timestamp getRegisterTime() {
        return registerTime;
    }

    public void setRegisterType(Integer registerType) {
        this.registerType = registerType;
    }

    public Integer getRegisterType() {
        return registerType;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getRemark() {
        return remark;
    }

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

    public String getFarmId() {
        return farmId;
    }

    public void setActiveStatus(Integer activeStatus) {
        this.activeStatus = activeStatus;
    }

    public Integer getActiveStatus() {
        return activeStatus;
    }

    public void setActiveTime(Timestamp activeTime) {
        this.activeTime = activeTime;
    }

    public Timestamp getActiveTime() {
        return activeTime;
    }

    public void setLiveStatus(Integer liveStatus) {
        this.liveStatus = liveStatus;
    }

    public Integer getLiveStatus() {
        return liveStatus;
    }

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

    public Date getCreateDate() {
        return createDate;
    }

    public void setBat(Integer bat) {
        this.bat = bat;
    }

    public Integer getBat() {
        return bat;
    }

    @Override
    public String toString() {
        return "EartagEartagRegisterEntity{" +
                "id=" + id + '\'' +
                "earmark=" + earmark + '\'' +
                "firstTime=" + firstTime + '\'' +
                "lastTime=" + lastTime + '\'' +
                "firstDevice=" + firstDevice + '\'' +
                "belongDevice=" + belongDevice + '\'' +
                "lastDevice=" + lastDevice + '\'' +
                "registerTime=" + registerTime + '\'' +
                "registerType=" + registerType + '\'' +
                "remark=" + remark + '\'' +
                "farmId=" + farmId + '\'' +
                "activeStatus=" + activeStatus + '\'' +
                "activeTime=" + activeTime + '\'' +
                "liveStatus=" + liveStatus + '\'' +
                "createDate=" + createDate + '\'' +
                "bat=" + bat + '\'' +
                '}';
    }
}
