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_abnormal_eartag_detail")
public class EartagAbnormalEartagDetailEntity 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 = "add_time", nullable = false)
    private Timestamp addTime;

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

    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 setAddTime(Timestamp addTime) {
        this.addTime = addTime;
    }

    public Timestamp getAddTime() {
        return addTime;
    }

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

    public Date getCreateDate() {
        return createDate;
    }

    @Override
    public String toString() {
        return "EartagAbnormalEartagDetailEntity{" +
                "id=" + id + '\'' +
                "earmark=" + earmark + '\'' +
                "addTime=" + addTime + '\'' +
                "createDate=" + createDate + '\'' +
                '}';
    }
}
