package com.huimv.eartag.dao.entity;

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

@Entity
@Table(name = "eartag_abnormal_device_count")
public class EartagAbnormalDeviceCountEntity 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 = "device_count", nullable = false)
    private String deviceCount;

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

    public String getDeviceCount() {
        return deviceCount;
    }

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

    public Date getCreateDate() {
        return createDate;
    }

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