|
@@ -1,5 +1,6 @@
|
|
|
package cn.com.qmth.examcloud.core.basic.dao.entity;
|
|
|
|
|
|
+import javax.persistence.Column;
|
|
|
import javax.persistence.Entity;
|
|
|
import javax.persistence.GeneratedValue;
|
|
|
import javax.persistence.Id;
|
|
@@ -54,6 +55,12 @@ public class Student extends JpaEntity {
|
|
|
*/
|
|
|
private String phoneNumber;
|
|
|
|
|
|
+ /**
|
|
|
+ * 安全手机号码(用于登录)
|
|
|
+ */
|
|
|
+ @Column(unique = true, nullable = true)
|
|
|
+ private String securityPhone;
|
|
|
+
|
|
|
public Student() {
|
|
|
}
|
|
|
|
|
@@ -157,4 +164,12 @@ public class Student extends JpaEntity {
|
|
|
this.phoneNumber = phoneNumber;
|
|
|
}
|
|
|
|
|
|
+ public String getSecurityPhone() {
|
|
|
+ return securityPhone;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setSecurityPhone(String securityPhone) {
|
|
|
+ this.securityPhone = securityPhone;
|
|
|
+ }
|
|
|
+
|
|
|
}
|