package com.huimv.eartag.dao.entity;

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

@Entity
@Table(name = "eartag_abnormal_eartag_count")
public class EartagAbnormalEartagCountEntity 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", nullable = false)
    private String farmId;

    @Column(name = "eartag_count", nullable = false)
    private String eartagCount;

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

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

    public Integer getId() {
        return id;
    }

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

    public String getFarmId() {
        return farmId;
    }

    public void setEartagCount(String eartagCount) {
        this.eartagCount = eartagCount;
    }

    public String getEartagCount() {
        return eartagCount;
    }

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

    public Date getCreateDate() {
        return createDate;
    }

    @Override
    public String toString() {
        return "EartagAbnormalEartagCountEntity{" +
                "id=" + id + '\'' +
                "farmId=" + farmId + '\'' +
                "eartagCount=" + eartagCount + '\'' +
                "createDate=" + createDate + '\'' +
                '}';
    }
}
