package cn.estsh.i3plus.ext.mes.pojo.bean;

import cn.estsh.i3plus.pojo.base.bean.BaseBean;
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.Index;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @Description:
 * @Author: xiangming.liao
 * @Date: 2021/01/14 20:03
 * @Modify:
 */
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_PROD_DATA_TO_SOFT_ADAPTER_CFG", indexes = {
        @Index(columnList = "SUIT_CASE_CODE")
})
@Api("MES_生产数据回传软适配配置表")
public class MesProdDataToSoftAdapterCfg extends BaseBean implements Serializable {

    private static final long serialVersionUID = -7143421964375858881L;

    @Column(name = "SUIT_CASE_CODE")
    @ApiParam(value = "适配器代码")
    private String suitCaseCode;

    @Column(name = "SUIT_CASE_NAME")
    @ApiParam(value = "适配器名称")
    private String suitCaseName;

    @Column(name = "SUIT_SID")
    @ApiParam(value = "文件名称")
    private String suitSid;

    @Column(name = "STRATEGY_CLASS")
    @ApiParam("策略类")
    private String strategyClass;

    @Column(name = "EXEC_CLASS")
    @ApiParam("执行类")
    private String execClass;

    @Column(name = "FIELD_CONTENT")
    @ApiParam(value = "字段内容")
    private String fieldContent;

    @Column(name = "SPLIT_COUNT")
    @ApiParam(value = "文件数据量")
    private String splitCount;

}
