wangwei 6 år sedan
förälder
incheckning
1d46992a27

+ 8 - 0
examcloud-core-examwork-dao/src/main/java/cn/com/qmth/examcloud/core/examwork/dao/entity/ExamStudentEntity.java

@@ -1,5 +1,6 @@
 package cn.com.qmth.examcloud.core.examwork.dao.entity;
 
+import javax.persistence.Column;
 import javax.persistence.Entity;
 import javax.persistence.GeneratedValue;
 import javax.persistence.Id;
@@ -22,26 +23,31 @@ public class ExamStudentEntity extends JpaEntity {
 	/**
 	 * 学生用户id
 	 */
+	@Column(nullable = false)
 	private Long studentId;
 
 	/**
 	 * 考生姓名
 	 */
+	@Column(nullable = false)
 	private String name;
 
 	/**
 	 * 考试
 	 */
+	@Column(nullable = false)
 	private Long examId;
 
 	/**
 	 * 学校id
 	 */
+	@Column(nullable = false)
 	private Long rootOrgId;
 
 	/**
 	 * 学习中心id
 	 */
+	@Column(nullable = false,)
 	private Long orgId;
 
 	/**
@@ -52,11 +58,13 @@ public class ExamStudentEntity extends JpaEntity {
 	/**
 	 * 身份证号
 	 */
+	@Column(nullable = false)
 	private String identityNumber;
 
 	/**
 	 * 课程ID
 	 */
+	@Column(nullable = false)
 	private Long courseId;
 
 	/**