package com.huimv.eartag.dao.entity;

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

@Entity
@Table(name = "eartag_abnormal_eartag_times")
public class EartagAbnormalEartagTimesEntity implements Serializable {

    private static final long serialVersionUID = 1L;

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

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

    @Column(name = "times", nullable = false)
    private Integer times;

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

    @Column(name = "farmId", nullable = false)
    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 setTimes(Integer times) {
        this.times = times;
    }

    public Integer getTimes() {
        return times;
    }

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

    @Override
    public String toString() {
        return "EartagAbnormalEartagTimesEntity{" +
                "id=" + id + '\'' +
                "earmark=" + earmark + '\'' +
                "times=" + times + '\'' +
                "createDate=" + createDate + '\'' +
                "farmId=" + farmId + '\'' +
                '}';
    }
}
