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


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

import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;

/**
 * 坩埚点检项目
 */
@Entity
@Table(name = "zhxx_operate_crucible_check")
@DynamicUpdate
@DynamicInsert
public class CrucibleCheck {

    /**
     * 主键ID
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

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

    /**
     * 点检类别
     */
    @Column(length = 80)
    private String type;

    /**
     * 点检子项
     */
    @Transient
    private List<CrucibleCheckItem> itemList = new ArrayList<>();

    public Integer getId() {
        return id;
    }

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

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public List<CrucibleCheckItem> getItemList() {
        return itemList;
    }

    public void setItemList(List<CrucibleCheckItem> itemList) {
        this.itemList = itemList;
    }
}
