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_raw")
public class EartagRawEntity implements Serializable {

    private static final long serialVersionUID = 1L;

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

    @Column(name = "cmd_header")
    private String cmdHeader;

    @Column(name = "cmd")
    private String cmd;

    @Column(name = "device")
    private String device;

    @Column(name = "ask")
    private String ask;

    @Column(name = "add_time")
    private Timestamp addTime;

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

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

    public Integer getId() {
        return id;
    }

    public void setCmdHeader(String cmdHeader) {
        this.cmdHeader = cmdHeader;
    }

    public String getCmdHeader() {
        return cmdHeader;
    }

    public void setCmd(String cmd) {
        this.cmd = cmd;
    }

    public String getCmd() {
        return cmd;
    }

    public void setDevice(String device) {
        this.device = device;
    }

    public String getDevice() {
        return device;
    }

    public void setAsk(String ask) {
        this.ask = ask;
    }

    public String getAsk() {
        return ask;
    }

    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 "EartagRawEntity{" +
                "id=" + id + '\'' +
                "cmdHeader=" + cmdHeader + '\'' +
                "cmd=" + cmd + '\'' +
                "device=" + device + '\'' +
                "ask=" + ask + '\'' +
                "addTime=" + addTime + '\'' +
                "createDate=" + createDate + '\'' +
                '}';
    }
}
