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

import java.io.Serializable;

import javax.persistence.*;

import cn.com.qmth.stmms.common.annotation.ExcelField;

/**
 * 客观题分段统计
 */
@Entity
@Table(name = "s_basic_subject_range", indexes = { @Index(columnList = "exam_id,subject_code") })
public class ReportSubjectRange implements Serializable {

    private static final long serialVersionUID = -6460526419770818333L;

    /**
     * 主键
     */
    @Id
    @GeneratedValue
    private Integer id;

    /**
     * 考试id
     */
    @Column(name = "exam_id")
    private Integer examId;

    /**
     * 课程编号
     */
    @ExcelField(title = "课程代码", align = 2, sort = 10)
    @Column(name = "subject_code")
    private String subjectCode;

    /**
     * 科目名称
     */
    @ExcelField(title = "课程名称", align = 2, sort = 20)
    @Column(name = "subject_name")
    private String subjectName;

    @Column(name = "reality_count")
    private Integer realityCount;

    @Column(name = "objective_score")
    private Double objectiveScore;

    @Column(name = "objective_score_range", nullable = true, columnDefinition = "text")
    private String objectiveScoreRange;

    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 getSubjectCode() {
        return subjectCode;
    }

    public void setSubjectCode(String subjectCode) {
        this.subjectCode = subjectCode;
    }

    public String getSubjectName() {
        return subjectName;
    }

    public void setSubjectName(String subjectName) {
        this.subjectName = subjectName;
    }

    public String getObjectiveScoreRange() {
        return objectiveScoreRange;
    }

    public void setObjectiveScoreRange(String objectiveScoreRange) {
        this.objectiveScoreRange = objectiveScoreRange;
    }

    public Integer getRealityCount() {
        return realityCount;
    }

    public void setRealityCount(Integer realityCount) {
        this.realityCount = realityCount;
    }

    public Double getObjectiveScore() {
        return objectiveScore;
    }

    public void setObjectiveScore(Double objectiveScore) {
        this.objectiveScore = objectiveScore;
    }
}