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

import java.io.Serializable;
import java.util.Date;

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

/**
 * 成绩校验
 * 
 * @author Administrator
 *
 */
@Entity
@Table(name = "eb_score_verify")
public class ScoreVerify implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8782399485127136556L;

	@Id
	@GeneratedValue
	private Integer id;

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

	/**
	 * 校验人id
	 */
	@Column(name = "user_id", nullable = false)
	private Integer userId;

	/**
	 * 考生id
	 */
	@Column(name = "student_id", nullable = false)
	private Integer studentId;

	/**
	 * 是否被标记
	 */
	@Column(name = "flagged",nullable = false)
	private boolean flagged;
	
	/**
	 * 是否被查看
	 */
	@Column(name = "viewed",nullable = false)
	private boolean viewed;

	/**
	 * 校验时间
	 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "verify_time")
	private Date verifyTime;
	/**
	 * 创建时间
	 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time", nullable = false)
	private Date createTime;

	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 Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}


	public Integer getStudentId() {
		return studentId;
	}

	public void setStudentId(Integer studentId) {
		this.studentId = studentId;
	}

	public boolean getFlagged() {
		return flagged;
	}

	public void setFlagged(boolean flagged) {
		this.flagged = flagged;
	}

	public Date getVerifyTime() {
		return verifyTime;
	}

	public void setVerifyTime(Date verifyTime) {
		this.verifyTime = verifyTime;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public boolean getViewed() {
		return viewed;
	}

	public void setViewed(boolean viewed) {
		this.viewed = viewed;
	}

}
