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.Table;

/**
 * @Description :
 * <per>
 * <br/>   create table LacSuitTaskParamAdapter(
 * <br/>       sutiTaskId           bigint                         null,
 * <br/>       suitTaskCode         varchar(50)                    null,
 * <br/>       suitTaskNameRdd      varchar(50)                    null,
 * <br/>       paramId              bigint                         null,
 * <br/>       paramName            varchar(50)                    null,
 * <br/>       paramType            int                            null,
 * <br/>       paramValueType       int                            null,
 * <br/>       defaultValue         varchar(50)                    null,
 * <br/>       transferParamName    varchar(50)                    null,
 * <br/>       transferParamValueType int                            null
 * <br/>   );
 * <br/>   comment on table LacSuitTaskParamAdapter is'适配任务参数转换';
 * <br/>   comment on column LacSuitTaskParamAdapter.sutiTaskId is'适配任务id';
 * <br/>   comment on column LacSuitTaskParamAdapter.suitTaskCode is'适配任务代码';
 * <br/>   comment on column LacSuitTaskParamAdapter.suitTaskNameRdd is'适配任务名称';
 * <br/>   comment on column LacSuitTaskParamAdapter.paramId is'参数id';
 * <br/>   comment on column LacSuitTaskParamAdapter.paramName is'参数名称';
 * <br/>   comment on column LacSuitTaskParamAdapter.paramType is'参数类型(枚举)';
 * <br/>   comment on column LacSuitTaskParamAdapter.paramValueType is'参数值类型(枚举)';
 * <br/>   comment on column LacSuitTaskParamAdapter.defaultValue is'默认值';
 * <br/>   comment on column LacSuitTaskParamAdapter.transferParamName is'转换后参数名称';
 * <br/>   comment on column LacSuitTaskParamAdapter.transferParamValueType is'转换后参数值类型';
 * </per>
 * @Reference :
 * @Author : wei.peng
 * @CreateDate : 19-10-25 下午1:45
 * @Modify:
 **/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name="LAC_SUIT_TASK_PARAM_ADAPTER")
@Api(value="调度任务参数转换",description = "调度任务参数转换信息")
public class LacSuitTaskParamAdapter extends BaseBean {

    private static final long serialVersionUID = -4049358225863293288L;
    @Column(name="TASK_ID")
    @ApiParam(value ="任务ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long taskId;

    @Column(name="TASK_NAME_RDD")
    @ApiParam(value ="任务名称")
    private String taskNameRdd;

    @Column(name="TASK_CODE_RDD")
    @ApiParam(value ="任务代码")
    private String taskCodeRdd;

    @Column(name="PARAM_ID")
    @ApiParam(value ="参数ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long paramId;

    @Column(name="PARAM_NAME")
    @ApiParam(value ="参数名称")
    private String paramName;

    @Column(name="PARAM_TYPE")
    @ApiParam(value ="参数类型")
    private Integer paramType;

    @Column(name="PARAM_VALUE_TYPE")
    @ApiParam(value ="参数值类型")
    private Integer paramValueType;

    @Column(name="TRANSFER_PARAM_NAME")
    @ApiParam(value ="转换后参数名称")
    private String transferParamName;

    @Column(name="TRANSFER_PARAM_VALUE_TYPE")
    @ApiParam(value ="转换后参数值类型")
    private Integer transferParamValueType;

    @Column(name="DEFAULT_VALUE")
    @ApiParam(value ="参数默认值")
    private String defaultValue;

}
