package com.qxueyou.scc.exercise.model; import java.io.Serializable; import java.util.Date; 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.Table; import org.hibernate.annotations.GenericGenerator; import org.springframework.format.annotation.DateTimeFormat; import com.fasterxml.jackson.annotation.JsonIgnore; import com.qxueyou.scc.base.model.ITrace; /** * The persistent class for the exercise_exam_re_class database table. * */ @Entity @Table(name="exercise_exam_re_group") @NamedQuery(name="ExerciseExamReGroup.findAll", query="SELECT e FROM ExerciseExamReGroup e") public class ExerciseExamReGroup implements Serializable, ITrace { private static final long serialVersionUID = 1L; //试卷类型 public static final String EXAM_TYPE_A = "A"; public static final String EXAM_TYPE_B = "B"; public static final String EXAM_TYPE_C = "C"; public static final String EXAM_TYPE_D = "D"; //关联类型 public static final short GROUP_TYPE_SOURCE = 1; public static final short GROUP_TYPE_EXAM = 2; @Id @GeneratedValue(generator = "hibernate-uuid") @GenericGenerator(name = "hibernate-uuid", strategy = "uuid") @Column(name="re_id") private String reId; private short type; @Column(name="CREATE_ID") private String createId; @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonIgnore @Column(name="CREATE_TIME") private Date createTime; private String creator; @Column(name="DELETE_FLAG") private boolean deleteFlag; @Column(name="exam_id") private String examId; @Column(name="group_id") private String groupId; @Column(name="UPDATE_ID") private String updateId; @Column(name="EXAM_TYPE") private String examType; @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonIgnore @Column(name="UPDATE_TIME") private Date updateTime; private String updator; @ManyToOne(cascade = CascadeType.ALL,fetch = FetchType.LAZY) @JoinColumn(name = "EXAM_ID",referencedColumnName="EXERCISE_INFO_ID",updatable=false,insertable=false) @JsonIgnore private ExerciseInfo exerciseInfo; public ExerciseExamReGroup() { } public String getExamType() { return examType; } public void setExamType(String examType) { this.examType = examType; } public short getType() { return type; } public void setType(short type) { this.type = type; } public String getCreateId() { return this.createId; } public void setCreateId(String createId) { this.createId = createId; } public Date getCreateTime() { return this.createTime; } public void setCreateTime(Date createTime) { this.createTime = createTime; } public String getCreator() { return this.creator; } public void setCreator(String creator) { this.creator = creator; } public boolean getDeleteFlag() { return this.deleteFlag; } public void setDeleteFlag(boolean deleteFlag) { this.deleteFlag = deleteFlag; } public String getExamId() { return this.examId; } public void setExamId(String examId) { this.examId = examId; } public String getGroupId() { return this.groupId; } public void setGroupId(String groupId) { this.groupId = groupId; } public String getReId() { return this.reId; } public void setReId(String reId) { this.reId = reId; } public String getUpdateId() { return this.updateId; } public void setUpdateId(String updateId) { this.updateId = updateId; } public Date getUpdateTime() { return this.updateTime; } public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; } public String getUpdator() { return this.updator; } public void setUpdator(String updator) { this.updator = updator; } public ExerciseInfo getExerciseInfo() { return exerciseInfo; } public void setExerciseInfo(ExerciseInfo exerciseInfo) { this.exerciseInfo = exerciseInfo; } }