package cn.com.qmth.stmms.biz.mark.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "m_problem_type")
public class ProblemType implements Serializable {

    private static final long serialVersionUID = 97815264735540151L;

    @Id
    @GeneratedValue
    private Integer id;

    private String name;

    @Column(name = "exam_id")
    private Integer examId;

    @Column(name = "is_custom")
    private boolean custom;

    public ProblemType(Integer examId, String name, boolean custom) {
        this.examId = examId;
        this.name = name;
        this.custom = custom;
    }

    public ProblemType() {

    }

    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 Integer getExamId() {
        return examId;
    }

    public void setExamId(Integer examId) {
        this.examId = examId;
    }

    public boolean isCustom() {
        return custom;
    }

    public void setCustom(boolean custom) {
        this.custom = custom;
    }

}
