package com.uas.eis.entity;

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

/**
 * Created by luhg on 2018/4/24.
 * 日志记录
 */
@Entity
@Table(name = "edi_log")
public class EdiLog implements Serializable{

    private static final long serialVersionUID = 1L;

    @Id
    @GeneratedValue
    @Column(name = "el_id")
    private Long id;

    @Column(name = "el_keyvalue")
    private String keyValue;

    @Column(name = "el_data")
    private String data;

    @Column(name = "el_status")
    private String status;

    @Column(name = "el_date")
    private Date date = new Date();

    @Column(name = "el_type")
    private String type;

    @Column(name = "el_error_code")
    private String errorCode;

    @Column(name = "el_error_msg")
    private String errorMsg;

    public EdiLog(){
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getId() {
        return id;
    }

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

    public String getKeyValue() {
        return keyValue;
    }

    public void setKeyValue(String keyValue) {
        this.keyValue = keyValue;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }
}
