package com.sifang.modules.order.entity;


import com.drew.lang.annotations.NotNull;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;

import javax.persistence.*;
import java.io.Serializable;
/**
 *工单操作/跟踪明细记录表实体诶
 * @author lzp
 * @version 2019-11-13
 */
@Entity
@Table(name="crm_order_operation_info")
public class CrmOrderOperationInfo implements Serializable{
    private String id;
    private CrmOrder  order;
    private String  siteId;
    private String  processDetail;
    private String  trackDetail;

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

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

    @OneToOne(cascade = CascadeType.ALL)
    @JoinColumn(name = "order_id")
    @NotFound(action = NotFoundAction.IGNORE)
    @NotNull
    public CrmOrder getOrder() {
        return order;
    }

    public void setOrder(CrmOrder order) {
        this.order = order;
    }

    public String getSiteId() {
        return siteId;
    }

    public void setSiteId(String siteId) {
        this.siteId = siteId;
    }

    public String getProcessDetail() {
        return processDetail;
    }

    public void setProcessDetail(String processDetail) {
        this.processDetail = processDetail;
    }

    public String getTrackDetail() {
        return trackDetail;
    }

    public void setTrackDetail(String trackDetail) {
        this.trackDetail = trackDetail;
    }
}
