package com.huimv.eartag.dao.entity;

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

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

    @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 setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode;
    }

    public String getDeviceCode() {
        return deviceCode;
    }

    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 "EartagAbnormalDeviceTimesEntity{" +
                "id=" + id + '\'' +
                "deviceCode=" + deviceCode + '\'' +
                "times=" + times + '\'' +
                "createDate=" + createDate + '\'' +
                "farmId=" + farmId + '\'' +
                '}';
    }
}
