package com.qxueyou.scc.exam.model;
|
|
import java.io.Serializable;
|
import java.util.Date;
|
import java.util.List;
|
|
import javax.persistence.CascadeType;
|
import javax.persistence.Column;
|
import javax.persistence.Entity;
|
import javax.persistence.FetchType;
|
import javax.persistence.GeneratedValue;
|
import javax.persistence.Id;
|
import javax.persistence.JoinColumn;
|
import javax.persistence.ManyToOne;
|
import javax.persistence.NamedQuery;
|
import javax.persistence.OneToMany;
|
import javax.persistence.Table;
|
import javax.persistence.Temporal;
|
import javax.persistence.TemporalType;
|
import javax.persistence.Transient;
|
|
import org.hibernate.annotations.GenericGenerator;
|
import org.hibernate.annotations.Where;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
import com.qxueyou.scc.base.model.ITrace;
|
|
/**
|
* The persistent class for the exam_batch_info database table. 试卷批次表
|
*/
|
@Entity
|
@Table(name = "exam_batch_info")
|
@NamedQuery(name = "ExamBatchInfo.findAll", query = "SELECT e FROM ExamBatchInfo e")
|
public class ExamBatchInfo implements Serializable,ITrace {
|
private static final long serialVersionUID = 1L;
|
|
@Id
|
@GeneratedValue(generator = "hibernate-uuid")
|
@GenericGenerator(name = "hibernate-uuid", strategy = "uuid")
|
@Column(name = "EXAM_BATCH_ID", unique = true, nullable = false, length = 32)
|
private String examBatchId;
|
|
@Column(name = "EXAM_BATCH_NO")
|
private short examBatchNo;
|
|
@Column(name = "EXAM_ID")
|
private String examId;
|
|
@Column(name = "classRoom_id")
|
private String classRoomID;
|
|
@Column(name = "examRoom_id")
|
private String examRoomID;
|
|
@Column(name = "examRoom_name")
|
private String examRoomName;
|
|
@Temporal(TemporalType.TIMESTAMP)
|
@Column(name = "START_TIME")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private Date startTime;
|
|
@Temporal(TemporalType.TIMESTAMP)
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@Column(name = "END_TIME")
|
private Date endTime;
|
|
@Column(name = "BATCH_STATUS")
|
private short batchStatus;
|
|
@Column(name = "CREATE_ID", length = 32)
|
@JsonIgnore
|
private String createId;
|
|
@Column(name = "CREATOR", nullable = false, length = 100)
|
@JsonIgnore
|
private String creator;
|
|
@Column(name = "CREATE_TIME", nullable = false)
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@JsonIgnore
|
private Date createTime;
|
|
/** 修改人ID */
|
@Column(name = "UPDATE_ID", length = 32)
|
@JsonIgnore
|
private String updateId;
|
|
/** 修改时间 */
|
@Column(name = "UPDATE_TIME", nullable = false)
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private Date updateTime;
|
/** 修改人 */
|
@Column(name = "UPDATOR", length = 100)
|
@JsonIgnore
|
private String updator;
|
|
/** 删除标志 */
|
@Column(name = "DELETE_FLAG", nullable = false)
|
@JsonIgnore
|
private boolean deleteFlag;
|
|
@ManyToOne(cascade = CascadeType.ALL,fetch = FetchType.LAZY)
|
@JoinColumn(name = "EXAM_ID",referencedColumnName="EXAM_ID",updatable=false,insertable=false)
|
@JsonIgnore
|
private ExamInfo examInfo;
|
|
@OneToMany(fetch = FetchType.LAZY, mappedBy = "examBatchInfo")
|
@Where(clause="DELETE_FLAG=0")
|
private List<ExamBatchClassRe> reClasses;
|
|
@Transient
|
private String examName;
|
|
public String getExamName() {
|
return examName;
|
}
|
|
public void setExamName(String examName) {
|
this.examName = examName;
|
}
|
|
public ExamInfo getExamInfo() {
|
return examInfo;
|
}
|
|
public void setExamInfo(ExamInfo examInfo) {
|
this.examInfo = examInfo;
|
}
|
|
public List<ExamBatchClassRe> getReClasses() {
|
return reClasses;
|
}
|
|
public void setReClasses(List<ExamBatchClassRe> reClasses) {
|
this.reClasses = reClasses;
|
}
|
|
public ExamBatchInfo() {
|
}
|
|
public String getExamBatchId() {
|
return examBatchId;
|
}
|
|
public void setExamBatchId(String examBatchId) {
|
this.examBatchId = examBatchId;
|
}
|
|
public Date getEndTime() {
|
return endTime;
|
}
|
|
public void setEndTime(Date endTime) {
|
this.endTime = endTime;
|
}
|
|
public short getExamBatchNo() {
|
return examBatchNo;
|
}
|
|
public void setExamBatchNo(short examBatchNo) {
|
this.examBatchNo = examBatchNo;
|
}
|
|
public String getExamId() {
|
return examId;
|
}
|
|
public void setExamId(String examId) {
|
this.examId = examId;
|
}
|
|
public Date getStartTime() {
|
return startTime;
|
}
|
|
public void setStartTime(Date startTime) {
|
this.startTime = startTime;
|
}
|
|
public String getCreateId() {
|
return createId;
|
}
|
|
public void setCreateId(String createId) {
|
this.createId = createId;
|
}
|
|
public String getCreator() {
|
return creator;
|
}
|
|
public void setCreator(String creator) {
|
this.creator = creator;
|
}
|
|
public Date getCreateTime() {
|
return createTime;
|
}
|
|
public void setCreateTime(Date createTime) {
|
this.createTime = createTime;
|
}
|
|
public String getUpdateId() {
|
return updateId;
|
}
|
|
public void setUpdateId(String updateId) {
|
this.updateId = updateId;
|
}
|
|
public Date getUpdateTime() {
|
return updateTime;
|
}
|
|
public void setUpdateTime(Date updateTime) {
|
this.updateTime = updateTime;
|
}
|
|
public String getUpdator() {
|
return updator;
|
}
|
|
public void setUpdator(String updator) {
|
this.updator = updator;
|
}
|
|
public boolean getDeleteFlag() {
|
return deleteFlag;
|
}
|
|
public void setDeleteFlag(boolean deleteFlag) {
|
this.deleteFlag = deleteFlag;
|
}
|
|
public short getBatchStatus() {
|
return batchStatus;
|
}
|
|
public void setBatchStatus(short batchStatus) {
|
this.batchStatus = batchStatus;
|
}
|
|
public String getClassRoomID() {
|
return classRoomID;
|
}
|
|
public void setClassRoomID(String classRoomID) {
|
this.classRoomID = classRoomID;
|
}
|
|
public String getExamRoomID() {
|
return examRoomID;
|
}
|
|
public void setExamRoomID(String examRoomID) {
|
this.examRoomID = examRoomID;
|
}
|
|
public String getExamRoomName() {
|
return examRoomName;
|
}
|
|
public void setExamRoomName(String examRoomName) {
|
this.examRoomName = examRoomName;
|
}
|
}
|