package cn.estsh.i3plus.pojo.lac.bean;

import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;

/**
 * @Description :
 * @Reference :
 * @Author : wei.peng
 * @CreateDate : 19-10-18 下午6:04
 * @Modify:
 **/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name="LAC_LOG_TASK_DETAIL")
@Api(value="适配任务记录明细",description = "适配任务记录明细")
public class LacLogTaskDetail extends BaseBean {


    private static final long serialVersionUID = -4918694502072594064L;

    @Column(name="COMMAND_STACK_RECORD_ID")
    @ApiParam(value ="指令集记录ID" , example = "-1")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long commandStackRecordId;

    @Column(name="commandStackId")
    @ApiParam(value ="指令集ID" , example = "-1")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long commandStackId;

    @Column(name="COMMAND_STACK_TYPE_ID")
    @ApiParam(value ="指令集类型")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long commandStackTypeId;

    @Column(name="STEP_ID")
    @ApiParam(value ="步骤ID" , example = "-1")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long stepId;

    @Column(name="LOG_TASK_ID")
    @ApiParam(value ="任务实例ID" , example = "-1")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long logTaskId;

    @Column(name="TASK_ID")
    @ApiParam(value ="任务ID" , example = "-1")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long taskId;

    @Column(name="TASK_TYPE_ID")
    @ApiParam(value ="任务类型")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long taskTypeId;

    @Column(name="adapterId")
    @ApiParam(value ="适配器ID" , example = "-1")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long adapterId;

    @Column(name="TASK_START_TIME")
    @ApiParam(value ="任务开始时间")
    private String taskStartTime;

    @Column(name="TASK_END_TIME")
    @ApiParam(value ="任务结束时间")
    private String taskEndTime;

    @Column(name="TASK_SPEND")
    @ApiParam(value ="任务耗时")
    private Long taskSpend;

    @Lob
    @Column(name="INPUT_PARAMETER")
    @ApiParam(value ="任务入参")
    private String inputParameter;

    @Lob
    @Column(name="INPUT_PARAMETER_BODY")
    @ApiParam(value ="任务入参处理完成后")
    private String inputParameterBody;

    @Lob
    @Column(name="OUTPUT_PARAMETER")
    @ApiParam(value ="任务出参")
    private String outputParameter;

    @Lob
    @Column(name="OUTPUT_PARAMETER_BODY")
    @ApiParam(value ="任务出参处理后")
    private String outputParameterBody;

    @Lob
    @Column(name="ERROR_MESSAGE")
    @ApiParam(value ="任务执行异常信息")
    private String errorMessage;

}
