package com.sw.mes.yb.pc.entity;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;

/**
 * 坩埚点检子项
 */
@Entity
@Table(name = "zhxx_operate_crucible_check_item")
@DynamicUpdate
@DynamicInsert
public class CrucibleCheckItem {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    /**
     * 顺序
     */
    @Column(length = 10)
    private Integer priority;

    /**
     * 点检名称
     */
    @Column
    private String checkName;

    /**
     * 点检标准
     */
    @Column(length = 500)
    private String standard;

    /**
     * 点检方式
     */
    @Column
    private String method;

    /**
     * 点检项目ID
     */
    @Column(length = 10)
    private Integer parentId;

    /**
     * 点检项目
     */
    @Column(length = 100)
    private String parent;

    /**
     * 是否必检
     */
    @Column
    private Boolean required;

    public Integer getId() {
        return id;
    }

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

    public String getCheckName() {
        return checkName;
    }

    public void setCheckName(String checkName) {
        this.checkName = checkName;
    }

    public String getStandard() {
        return standard;
    }

    public void setStandard(String standard) {
        this.standard = standard;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getParent() {
        return parent;
    }

    public void setParent(String parent) {
        this.parent = parent;
    }

    public Boolean getRequired() {
        return required;
    }

    public void setRequired(Boolean required) {
        this.required = required;
    }

    public Integer getPriority() {
        return priority;
    }

    public void setPriority(Integer priority) {
        this.priority = priority;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }
}
