From 23da15b228e010d5dab2a5e839936e60f4df31fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=A5=8E=E7=A8=8B?= <2205565068@qq.com> Date: Fri, 15 Dec 2023 10:51:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=A6=E7=94=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Student.java | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 Student.java diff --git a/Student.java b/Student.java new file mode 100644 index 0000000..5fd1dec --- /dev/null +++ b/Student.java @@ -0,0 +1,71 @@ +package com.cya.entity; + +/** + * 学生实体类 + */ +public class Student { + + private int studentId; // 学生ID + private String stuNum; // 学号 + private String password; // 密码 + private String name; // 姓名 + private int dormBuildId; // 宿舍楼ID + private String dormName; // 宿舍名称 + private String sex; // 性别 + private String tel; // 电话号码 + public int getStudentId() { + return studentId; + } + public void setStudentId(int studentId) { + this.studentId = studentId; + } + public String getStuNum() { + return stuNum; + } + public void setStuNum(String stuNum) { + this.stuNum = stuNum; + } + public String getPassword() { + return password; + } + public void setPassword(String password) { + this.password = password; + } + public String getName() { + return name; + } + public void setName(String name) { + this.name = name; + } + public int getDormBuildId() { + return dormBuildId; + } + public void setDormBuildId(int dormBuildId) { + this.dormBuildId = dormBuildId; + } + public String getDormName() { + return dormName; + } + public void setDormName(String dormName) { + this.dormName = dormName; + } + public String getSex() { + return sex; + } + public void setSex(String sex) { + this.sex = sex; + } + public String getTel() { + return tel; + } + public void setTel(String tel) { + this.tel = tel; + } + @Override + public String toString() { + return "Student [studentId=" + studentId + ", stuNum=" + stuNum + ", password=" + password + ", name=" + name + + ", dormBuildId=" + dormBuildId + ", dormName=" + dormName + ", sex=" + sex + ", tel=" + tel + "]"; + } + + +} \ No newline at end of file