|
@@ -2,6 +2,7 @@ package cn.com.qmth.examcloud.core.examwork.dao.entity;
|
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
|
+import javax.persistence.Column;
|
|
|
import javax.persistence.Entity;
|
|
|
import javax.persistence.EnumType;
|
|
|
import javax.persistence.Enumerated;
|
|
@@ -9,7 +10,6 @@ import javax.persistence.GeneratedValue;
|
|
|
import javax.persistence.Id;
|
|
|
import javax.persistence.Index;
|
|
|
import javax.persistence.Table;
|
|
|
-import javax.validation.constraints.NotNull;
|
|
|
|
|
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
|
|
|
@@ -33,6 +33,7 @@ public class ExamEntity extends JpaEntity {
|
|
|
/**
|
|
|
* 顶级机构Id
|
|
|
*/
|
|
|
+ @Column(nullable = false)
|
|
|
private Long rootOrgId;
|
|
|
|
|
|
/**
|
|
@@ -50,12 +51,13 @@ public class ExamEntity extends JpaEntity {
|
|
|
/**
|
|
|
* 考试名称
|
|
|
*/
|
|
|
- @NotNull
|
|
|
+ @Column(nullable = false)
|
|
|
private String name;
|
|
|
|
|
|
/**
|
|
|
* 考试类型
|
|
|
*/
|
|
|
+ @Column(nullable = false)
|
|
|
@Enumerated(EnumType.STRING)
|
|
|
private ExamType examType;
|
|
|
|
|
@@ -64,6 +66,7 @@ public class ExamEntity extends JpaEntity {
|
|
|
*/
|
|
|
private Integer duration;
|
|
|
|
|
|
+ @Column(nullable = false)
|
|
|
private Boolean enable;
|
|
|
|
|
|
/**
|