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_device_eartag_count")
public class EartagDeviceEartagCountEntity implements Serializable {

    private static final long serialVersionUID = 1L;

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

    @Column(name = "device_code")
    private String deviceCode;

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

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

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

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

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

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

    public Integer getId() {
        return id;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode;
    }

    public String getDeviceCode() {
        return deviceCode;
    }

    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 setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getCreateDate() {
        return createDate;
    }

    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;
    }

    @Override
    public String toString() {
        return "EartagDeviceEartagCountEntity{" +
                "id=" + id + '\'' +
                "deviceCode=" + deviceCode + '\'' +
                "earmark=" + earmark + '\'' +
                "total=" + total + '\'' +
                "createDate=" + createDate + '\'' +
                "farmId=" + farmId + '\'' +
                "updateTime=" + updateTime + '\'' +
                '}';
    }
}
