|
@@ -6,7 +6,6 @@ import javax.persistence.GeneratedValue;
|
|
|
import javax.persistence.Id;
|
|
|
import javax.persistence.Index;
|
|
|
import javax.persistence.Table;
|
|
|
-import javax.validation.constraints.NotNull;
|
|
|
|
|
|
import cn.com.qmth.examcloud.commons.web.jpa.JpaEntity;
|
|
|
|
|
@@ -25,29 +24,27 @@ public class Student extends JpaEntity {
|
|
|
@GeneratedValue
|
|
|
private Long id;
|
|
|
|
|
|
- private Long userId;
|
|
|
-
|
|
|
- @NotNull
|
|
|
+ @Column(nullable = false)
|
|
|
private String name;
|
|
|
|
|
|
- @NotNull
|
|
|
+ @Column(nullable = false)
|
|
|
private String password;
|
|
|
|
|
|
private String studentCode;
|
|
|
|
|
|
- @NotNull
|
|
|
+ @Column(nullable = false)
|
|
|
private String identityNumber;
|
|
|
|
|
|
private String photoPath;
|
|
|
|
|
|
private String remark;
|
|
|
|
|
|
- @NotNull
|
|
|
+ @Column(nullable = false)
|
|
|
private Boolean enable;
|
|
|
|
|
|
private Long orgId;
|
|
|
|
|
|
- @NotNull
|
|
|
+ @Column(nullable = false)
|
|
|
private Long rootOrgId;
|
|
|
|
|
|
/**
|
|
@@ -76,14 +73,6 @@ public class Student extends JpaEntity {
|
|
|
this.id = id;
|
|
|
}
|
|
|
|
|
|
- public Long getUserId() {
|
|
|
- return userId;
|
|
|
- }
|
|
|
-
|
|
|
- public void setUserId(Long userId) {
|
|
|
- this.userId = userId;
|
|
|
- }
|
|
|
-
|
|
|
public String getName() {
|
|
|
return name;
|
|
|
}
|