package cn.estsh.i3plus.pojo.mes.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.*;
import java.io.Serializable;

/**
 * @Description :流程表
 * @Reference :
 * @Author : jack.jia
 * @CreateDate : 2019-04-02
 * @Modify:
 **/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_ROUTE")
@Api("流程表")
public class MesRoute extends BaseBean implements Serializable {
    private static final long serialVersionUID = -3616935751787295145L;

    @Column(name = "ROUTE_CODE")
    @ApiParam("流程代码")
    private String routeCode;

    @Column(name = "ROUTE_NAME")
    @ApiParam("流程名称")
    private String routeName;

    @Lob
    @Column(name = "POSITION")
    @ApiParam("GOJS位置")
    private String position;

    @Column(name = "ROUTE_TYPE")
    @ApiParam("流程类型 10-扫描类型 20-监控类型")
    private Integer routeType;

    @Transient
    @ApiParam("生产线")
    private String workCenterCode;
}
