|
@@ -1,15 +1,9 @@
|
|
|
package cn.com.qmth.examcloud.core.basic.dao.entity;
|
|
|
|
|
|
-import javax.persistence.Column;
|
|
|
-import javax.persistence.Entity;
|
|
|
-import javax.persistence.GeneratedValue;
|
|
|
-import javax.persistence.GenerationType;
|
|
|
-import javax.persistence.Id;
|
|
|
-import javax.persistence.Index;
|
|
|
-import javax.persistence.Table;
|
|
|
-
|
|
|
import cn.com.qmth.examcloud.web.jpa.JpaEntity;
|
|
|
|
|
|
+import javax.persistence.*;
|
|
|
+
|
|
|
/**
|
|
|
* 类注释
|
|
|
*
|
|
@@ -19,155 +13,157 @@ import cn.com.qmth.examcloud.web.jpa.JpaEntity;
|
|
|
*/
|
|
|
@Entity
|
|
|
@Table(name = "EC_B_STUDENT", indexes = {
|
|
|
- @Index(name = "IDX_B_S_002001", columnList = "rootOrgId,identityNumber", unique = true)})
|
|
|
+ @Index(name = "IDX_B_S_002001", columnList = "rootOrgId,identityNumber", unique = true),
|
|
|
+ @Index(name = "IDX_B_S_002002", columnList = "orgId")
|
|
|
+})
|
|
|
public class StudentEntity extends JpaEntity {
|
|
|
|
|
|
- private static final long serialVersionUID = 757531976286006550L;
|
|
|
+ private static final long serialVersionUID = 757531976286006550L;
|
|
|
+
|
|
|
+ @Id
|
|
|
+ @GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
|
+ private Long id;
|
|
|
+
|
|
|
+ @Column(nullable = false)
|
|
|
+ private String name;
|
|
|
+
|
|
|
+ @Column(nullable = false)
|
|
|
+ private String password;
|
|
|
+
|
|
|
+ @Column(nullable = false)
|
|
|
+ private String identityNumber;
|
|
|
+
|
|
|
+ private String photoPath;
|
|
|
+
|
|
|
+ private String remark;
|
|
|
|
|
|
- @Id
|
|
|
- @GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
|
- private Long id;
|
|
|
+ @Column(nullable = false)
|
|
|
+ private Boolean enable;
|
|
|
|
|
|
- @Column(nullable = false)
|
|
|
- private String name;
|
|
|
+ private Long orgId;
|
|
|
|
|
|
- @Column(nullable = false)
|
|
|
- private String password;
|
|
|
+ @Column(nullable = false)
|
|
|
+ private Long rootOrgId;
|
|
|
|
|
|
- @Column(nullable = false)
|
|
|
- private String identityNumber;
|
|
|
+ /**
|
|
|
+ * 手机号码
|
|
|
+ */
|
|
|
+ private String phoneNumber;
|
|
|
|
|
|
- private String photoPath;
|
|
|
+ /**
|
|
|
+ * 安全手机号码(用于登录)
|
|
|
+ */
|
|
|
+ @Column(unique = true, nullable = true)
|
|
|
+ private String securityPhone;
|
|
|
|
|
|
- private String remark;
|
|
|
+ /**
|
|
|
+ * 密码虚弱
|
|
|
+ */
|
|
|
+ @Column(nullable = false)
|
|
|
+ private Boolean passwordWeak;
|
|
|
|
|
|
- @Column(nullable = false)
|
|
|
- private Boolean enable;
|
|
|
+ public StudentEntity() {
|
|
|
+ }
|
|
|
|
|
|
- private Long orgId;
|
|
|
+ public StudentEntity(Long studentId) {
|
|
|
+ this.id = studentId;
|
|
|
+ }
|
|
|
|
|
|
- @Column(nullable = false)
|
|
|
- private Long rootOrgId;
|
|
|
+ public Long getId() {
|
|
|
+ return id;
|
|
|
+ }
|
|
|
|
|
|
- /**
|
|
|
- * 手机号码
|
|
|
- */
|
|
|
- private String phoneNumber;
|
|
|
+ public void setId(Long id) {
|
|
|
+ this.id = id;
|
|
|
+ }
|
|
|
|
|
|
- /**
|
|
|
- * 安全手机号码(用于登录)
|
|
|
- */
|
|
|
- @Column(unique = true, nullable = true)
|
|
|
- private String securityPhone;
|
|
|
-
|
|
|
- /**
|
|
|
- * 密码虚弱
|
|
|
- */
|
|
|
- @Column(nullable = false)
|
|
|
- private Boolean passwordWeak;
|
|
|
+ public String getName() {
|
|
|
+ return name;
|
|
|
+ }
|
|
|
|
|
|
- public StudentEntity() {
|
|
|
- }
|
|
|
+ public void setName(String name) {
|
|
|
+ this.name = name;
|
|
|
+ }
|
|
|
|
|
|
- public StudentEntity(Long studentId) {
|
|
|
- this.id = studentId;
|
|
|
- }
|
|
|
+ public String getPassword() {
|
|
|
+ return password;
|
|
|
+ }
|
|
|
|
|
|
- public Long getId() {
|
|
|
- return id;
|
|
|
- }
|
|
|
+ public void setPassword(String password) {
|
|
|
+ this.password = password;
|
|
|
+ }
|
|
|
|
|
|
- public void setId(Long id) {
|
|
|
- this.id = id;
|
|
|
- }
|
|
|
+ public String getIdentityNumber() {
|
|
|
+ return identityNumber;
|
|
|
+ }
|
|
|
|
|
|
- public String getName() {
|
|
|
- return name;
|
|
|
- }
|
|
|
+ public void setIdentityNumber(String identityNumber) {
|
|
|
+ this.identityNumber = identityNumber;
|
|
|
+ }
|
|
|
|
|
|
- public void setName(String name) {
|
|
|
- this.name = name;
|
|
|
- }
|
|
|
+ public String getPhotoPath() {
|
|
|
+ return photoPath;
|
|
|
+ }
|
|
|
|
|
|
- public String getPassword() {
|
|
|
- return password;
|
|
|
- }
|
|
|
+ public void setPhotoPath(String photoPath) {
|
|
|
+ this.photoPath = photoPath;
|
|
|
+ }
|
|
|
|
|
|
- public void setPassword(String password) {
|
|
|
- this.password = password;
|
|
|
- }
|
|
|
+ public String getRemark() {
|
|
|
+ return remark;
|
|
|
+ }
|
|
|
|
|
|
- public String getIdentityNumber() {
|
|
|
- return identityNumber;
|
|
|
- }
|
|
|
+ public void setRemark(String remark) {
|
|
|
+ this.remark = remark;
|
|
|
+ }
|
|
|
|
|
|
- public void setIdentityNumber(String identityNumber) {
|
|
|
- this.identityNumber = identityNumber;
|
|
|
- }
|
|
|
+ public Boolean getEnable() {
|
|
|
+ return enable;
|
|
|
+ }
|
|
|
|
|
|
- public String getPhotoPath() {
|
|
|
- return photoPath;
|
|
|
- }
|
|
|
+ public void setEnable(Boolean enable) {
|
|
|
+ this.enable = enable;
|
|
|
+ }
|
|
|
|
|
|
- public void setPhotoPath(String photoPath) {
|
|
|
- this.photoPath = photoPath;
|
|
|
- }
|
|
|
+ public Long getOrgId() {
|
|
|
+ return orgId;
|
|
|
+ }
|
|
|
|
|
|
- public String getRemark() {
|
|
|
- return remark;
|
|
|
- }
|
|
|
+ public void setOrgId(Long orgId) {
|
|
|
+ this.orgId = orgId;
|
|
|
+ }
|
|
|
|
|
|
- public void setRemark(String remark) {
|
|
|
- this.remark = remark;
|
|
|
- }
|
|
|
+ public Long getRootOrgId() {
|
|
|
+ return rootOrgId;
|
|
|
+ }
|
|
|
|
|
|
- public Boolean getEnable() {
|
|
|
- return enable;
|
|
|
- }
|
|
|
+ public void setRootOrgId(Long rootOrgId) {
|
|
|
+ this.rootOrgId = rootOrgId;
|
|
|
+ }
|
|
|
|
|
|
- public void setEnable(Boolean enable) {
|
|
|
- this.enable = enable;
|
|
|
- }
|
|
|
+ public String getPhoneNumber() {
|
|
|
+ return phoneNumber;
|
|
|
+ }
|
|
|
|
|
|
- public Long getOrgId() {
|
|
|
- return orgId;
|
|
|
- }
|
|
|
+ public void setPhoneNumber(String phoneNumber) {
|
|
|
+ this.phoneNumber = phoneNumber;
|
|
|
+ }
|
|
|
|
|
|
- public void setOrgId(Long orgId) {
|
|
|
- this.orgId = orgId;
|
|
|
- }
|
|
|
+ public String getSecurityPhone() {
|
|
|
+ return securityPhone;
|
|
|
+ }
|
|
|
|
|
|
- public Long getRootOrgId() {
|
|
|
- return rootOrgId;
|
|
|
- }
|
|
|
+ public void setSecurityPhone(String securityPhone) {
|
|
|
+ this.securityPhone = securityPhone;
|
|
|
+ }
|
|
|
|
|
|
- public void setRootOrgId(Long rootOrgId) {
|
|
|
- this.rootOrgId = rootOrgId;
|
|
|
- }
|
|
|
-
|
|
|
- public String getPhoneNumber() {
|
|
|
- return phoneNumber;
|
|
|
- }
|
|
|
-
|
|
|
- public void setPhoneNumber(String phoneNumber) {
|
|
|
- this.phoneNumber = phoneNumber;
|
|
|
- }
|
|
|
-
|
|
|
- public String getSecurityPhone() {
|
|
|
- return securityPhone;
|
|
|
- }
|
|
|
-
|
|
|
- public void setSecurityPhone(String securityPhone) {
|
|
|
- this.securityPhone = securityPhone;
|
|
|
- }
|
|
|
+ public Boolean getPasswordWeak() {
|
|
|
+ return passwordWeak;
|
|
|
+ }
|
|
|
|
|
|
- public Boolean getPasswordWeak() {
|
|
|
- return passwordWeak;
|
|
|
- }
|
|
|
+ public void setPasswordWeak(Boolean passwordWeak) {
|
|
|
+ this.passwordWeak = passwordWeak;
|
|
|
+ }
|
|
|
|
|
|
- public void setPasswordWeak(Boolean passwordWeak) {
|
|
|
- this.passwordWeak = passwordWeak;
|
|
|
- }
|
|
|
|
|
|
-
|
|
|
}
|