You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

128 lines
2.4 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package com.yanzhen.entity;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import com.yanzhen.utils.Entity;
import java.util.Date;
public class Student extends Entity{
private Integer id; // 学生ID
@Length(max = 50) // 学号最大长度50
private String stuNo;
@Length(max = 50) // 姓名最大长度50
private String name;
@Length(max = 50)// 身份证号最大长度50
private String idcard;
private Integer gradeId;// 年级ID
private Integer sex;// 性别1为男2为女
@Length(max = 50)// 电话号码最大长度50
private String phone;
@Length(max = 50)// 密码最大长度50
private String password;
private Integer clazzId;// 班级ID
private Org org;// 所属组织
private Grade grade;// 所属年级
public Integer getId() {
return id;// 获取学生ID
}
public void setId(Integer id) {// 设置学生ID
this.id = id;
}
public String getStuNo() {// 获取学号
return stuNo;
}
public void setStuNo(String stuNo) {// 设置学号
this.stuNo = stuNo;
}
public String getName() {// 获取姓名
return name;
}
public void setName(String name) {// 设置姓名
this.name = name;
}
public String getIdcard() {// 获取身份证号
return idcard;
}
public void setIdcard(String idcard) {// 设置身份证号
this.idcard = idcard;
}
public Integer getGradeId() {// 获取年级ID
return gradeId;
}
public void setGradeId(Integer gradeId) {// 设置年级ID
this.gradeId = gradeId;
}
public Integer getSex() {// 获取性别
return sex;
}
public void setSex(Integer sex) {// 设置性别
this.sex = sex;
}
public String getPhone() {// 获取电话号码
return phone;
}
public void setPhone(String phone) {// 设置电话号码
this.phone = phone;
}
public String getPassword() { // 获取密码
return password;
}
public void setPassword(String password) {// 设置密码
this.password = password;
}
public Integer getClazzId() {// 获取班级ID
return clazzId;
}
public void setClazzId(Integer clazzId) {// 设置班级ID
this.clazzId = clazzId;
}
public Org getOrg() {// 获取所属组织
return org;
}
public void setOrg(Org org) {// 设置所属组织
this.org = org;
}
public Grade getGrade() {// 获取所属年级
return grade;
}
public void setGrade(Grade grade) {// 设置所属年级
this.grade = grade;
}
}