package com.sifang.modules.supply.stock.entity;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Entity
@Table(name = "crm_supply_alarm")
public class CrmSupplyAlarm implements Serializable {

    private String id;

    private String type;

    private String objId;

    private String objCode;

    private String content;

    private String status;

    private String top;

    private Date createTime;

    private Date updateTime;

    private String ascription;

    private String ascriptionId;

    @Id
    @GeneratedValue(generator = "idGenerator")
    @GenericGenerator(name = "idGenerator", strategy = "uuid")
    public String getId() {
        return id;
    }

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

    public String getType() {
        return type;
    }

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

    public String getObjId() {
        return objId;
    }

    public void setObjId(String objId) {
        this.objId = objId;
    }

    public String getObjCode() {
        return objCode;
    }

    public void setObjCode(String objCode) {
        this.objCode = objCode;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getStatus() {
        return status;
    }

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

    public String getTop() {
        return top;
    }

    public void setTop(String top) {
        this.top = top;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getAscription() {
        return ascription;
    }

    public void setAscription(String ascription) {
        this.ascription = ascription;
    }

    public String getAscriptionId() {
        return ascriptionId;
    }

    public void setAscriptionId(String ascriptionId) {
        this.ascriptionId = ascriptionId;
    }

    @Override
    public String toString() {
        return "CrmSupplyAlarm{" +
                "id='" + id + '\'' +
                ", type='" + type + '\'' +
                ", objId='" + objId + '\'' +
                ", objCode='" + objCode + '\'' +
                ", content='" + content + '\'' +
                ", status='" + status + '\'' +
                ", top='" + top + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", ascription='" + ascription + '\'' +
                ", ascriptionId='" + ascriptionId + '\'' +
                '}';
    }
}
