package cn.com.qmth.stmms.biz.exam.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 = "eb_exam_subject_paper")
public class ExamSubjectPaper implements Serializable {

    private static final long serialVersionUID = 8097130416465761643L;

    @Id
    @GeneratedValue
    private Integer id;

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

    @Column(name = "code")
    private String code;

    // 题型名称
    @Column(name = "question_type_name")
    private String questionTypeName;

    // 题型总个数（包括有效个数和无效个数）
    @Column(name = "total_count")
    private Integer totalCount;

    // 题型有效个数
    @Column(name = "count")
    private Integer count;

    // 题型总分
    @Column(name = "total_score")
    private Double totalScore;

    // 题型间隔分
    @Column(name = "interval_score")
    private Double intervalScore;

    // 大题号
    @Column(name = "main_number")
    private Integer mainNumber;

    // 客观(主观)
    @Column(name = "is_objective")
    // 1：客观；0：主观
    private Integer objective;

    public String getQuestionTypeName() {
        return questionTypeName;
    }

    public void setQuestionTypeName(String questionTypeName) {
        this.questionTypeName = questionTypeName;
    }

    public Integer getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(Integer totalCount) {
        this.totalCount = totalCount;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Double getTotalScore() {
        return totalScore;
    }

    public void setTotalScore(Double totalScore) {
        this.totalScore = totalScore;
    }

    public Double getIntervalScore() {
        return intervalScore;
    }

    public void setIntervalScore(Double intervalScore) {
        this.intervalScore = intervalScore;
    }

    public Integer getId() {
        return id;
    }

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

    public Integer getExamId() {
        return examId;
    }

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

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getMainNumber() {
        return mainNumber;
    }

    public void setMainNumber(Integer mainNumber) {
        this.mainNumber = mainNumber;
    }

    public Integer getObjective() {
        return objective;
    }

    public void setObjective(Integer objective) {
        this.objective = objective;
    }
}
