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.
92 lines
2.1 KiB
92 lines
2.1 KiB
package com.ssm.entity;
|
|
|
|
public class Student {
|
|
private Integer studentId;
|
|
private String studentNo;
|
|
private String studentName;
|
|
private String gender;
|
|
private Integer age;
|
|
private Integer classId; // 关联班级ID
|
|
private String phone;
|
|
|
|
public Student() {}
|
|
|
|
public Student(Integer studentId, String studentNo, String studentName, String gender, Integer age, Integer classId, String phone) {
|
|
this.studentId = studentId;
|
|
this.studentNo = studentNo;
|
|
this.studentName = studentName;
|
|
this.gender = gender;
|
|
this.age = age;
|
|
this.classId = classId;
|
|
this.phone = phone;
|
|
}
|
|
|
|
public Integer getStudentId() {
|
|
return studentId;
|
|
}
|
|
|
|
public void setStudentId(Integer studentId) {
|
|
this.studentId = studentId;
|
|
}
|
|
|
|
public String getStudentNo() {
|
|
return studentNo;
|
|
}
|
|
|
|
public void setStudentNo(String studentNo) {
|
|
this.studentNo = studentNo;
|
|
}
|
|
|
|
public String getStudentName() {
|
|
return studentName;
|
|
}
|
|
|
|
public void setStudentName(String studentName) {
|
|
this.studentName = studentName;
|
|
}
|
|
|
|
public String getGender() {
|
|
return gender;
|
|
}
|
|
|
|
public void setGender(String gender) {
|
|
this.gender = gender;
|
|
}
|
|
|
|
public Integer getAge() {
|
|
return age;
|
|
}
|
|
|
|
public void setAge(Integer age) {
|
|
this.age = age;
|
|
}
|
|
|
|
public Integer getClassId() {
|
|
return classId;
|
|
}
|
|
|
|
public void setClassId(Integer classId) {
|
|
this.classId = classId;
|
|
}
|
|
|
|
public String getPhone() {
|
|
return phone;
|
|
}
|
|
|
|
public void setPhone(String phone) {
|
|
this.phone = phone;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return "Student{" +
|
|
"studentId=" + studentId +
|
|
", studentNo='" + studentNo + '\'' +
|
|
", studentName='" + studentName + '\'' +
|
|
", gender='" + gender + '\'' +
|
|
", age=" + age +
|
|
", classId=" + classId +
|
|
", phone='" + phone + '\'' +
|
|
'}';
|
|
}
|
|
} |