package cn.com.qmth.stmms.ms.core.domain;

import javax.persistence.*;
import java.io.Serializable;

/**
 * Created by yuanpan on 2017/10/19.
 */
@Entity
public class InspectRange implements Serializable {
    private static final long serialVersionUID = -8149790000466657234L;

    @Id
    @GeneratedValue
    private Long id;

    private Long workId;

    private boolean active;

    private boolean editable;

    @Enumerated(value = EnumType.STRING)
    private InspectRangeType type;

    @Column(name = "`condition`")
    private Integer condition;

    private Integer studentCount;

    public static enum InspectRangeType {
        ZF, DKFS, SYD
    }


    public Long getId() {
        return id;
    }

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

    public Long getWorkId() {
        return workId;
    }

    public void setWorkId(Long workId) {
        this.workId = workId;
    }

    public InspectRangeType getType() {
        return type;
    }

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

    public Integer getCondition() {
        return condition;
    }

    public void setCondition(Integer condition) {
        this.condition = condition;
    }

    public Integer getStudentCount() {
        return studentCount;
    }

    public void setStudentCount(Integer studentCount) {
        this.studentCount = studentCount;
    }

    public boolean isActive() {
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }

    public boolean isEditable() {
        return editable;
    }

    public void setEditable(boolean editable) {
        this.editable = editable;
    }
}
