首页 > 代码库 > 学生选课系统----实体类

学生选课系统----实体类

学生:

package com.csms.entity;/** * @author 李佩 *  * @version v1 *  * @time 2016/12/1 10:10 *  * @program 创建对应数据表实体的学生类,方便dao与数据库的连接 * */public class Student {	// 学生登录系统的登录名	private String loginName;	// 登录密码	private String loginPSD;	// 学生学号	private String stuID;	// 学生姓名	private String stuName;	// 学生年龄	private int stuAge;	// 学生性别	private String stuGender;	// 学生所属系院	private String stuSdept;	// 学生所属班级	private String stuClass;	public String getLoginName() {		return loginName;	}	public void setLoginName(String loginName) {		this.loginName = loginName;	}	public String getLoginPSD() {		return loginPSD;	}	public void setLoginPSD(String loginPSD) {		this.loginPSD = loginPSD;	}	public String getStuID() {		return stuID;	}	public void setStuID(String stuID) {		this.stuID = stuID;	}	public String getStuName() {		return stuName;	}	public void setStuName(String stuName) {		this.stuName = stuName;	}	public int getStuAge() {		return stuAge;	}	public void setStuAge(int stuAge) {		this.stuAge = stuAge;	}	public String getStuGender() {		return stuGender;	}	public void setStuGender(String stuGender) {		this.stuGender = stuGender;	}	public String getStuSdept() {		return stuSdept;	}	public void setStuSdept(String stuSdept) {		this.stuSdept = stuSdept;	}	public String getStuClass() {		return stuClass;	}	public void setStuClass(String stuClass) {		this.stuClass = stuClass;	}}

  

老师:

package com.csms.entity;/** * @author 李佩 *  * @version v1 *  * @time 2016/12/1 10:17 *  * @program 创建对应数据表实体的老师类,方便dao与数据库的连接 * */public class Teacher {	// 登录名	private String loginName;	// 登录密码	private String loginPSD;	// 老师ID	private String teacID;	// 老师名字	private String teacName;	// 老师年龄	private int teacAge;	// 老师性别	private String teacGender;	public String getLoginName() {		return loginName;	}	public void setLoginName(String loginName) {		this.loginName = loginName;	}	public String getLoginPSD() {		return loginPSD;	}	public void setLoginPSD(String loginPSD) {		this.loginPSD = loginPSD;	}	public String getTeacID() {		return teacID;	}	public void setTeacID(String teacID) {		this.teacID = teacID;	}	public String getTeacName() {		return teacName;	}	public void setTeacName(String teacName) {		this.teacName = teacName;	}	public int getTeacAge() {		return teacAge;	}	public void setTeacAge(int teacAge) {		this.teacAge = teacAge;	}	public String getTeacGender() {		return teacGender;	}	public void setTeacGender(String teacGender) {		this.teacGender = teacGender;	}}

  

管理员:

package com.csms.entity;/** * @author 李佩 *  * @version v1 *  * @time 2016/12/1 10:23 *  * @program 创建对应数据表实体的管理员类,方便dao与数据库的连接 * */public class Adminitartor {	// 登录名	private String loginName;	// 登录密码	private String loginPSD;	// 管理员名字	private String adminName;	// 管理员ID	private String adminID;	// 管理员性别	private String adminGender;	// 管理员年龄	private int adminAge;	// 管理员电话号码	private String adminPhone;	// 管理员地址	private String adminAddress;	public String getLoginName() {		return loginName;	}	public void setLoginName(String loginName) {		this.loginName = loginName;	}	public String getLoginPSD() {		return loginPSD;	}	public void setLoginPSD(String loginPSD) {		this.loginPSD = loginPSD;	}	public String getAdminName() {		return adminName;	}	public void setAdminName(String adminName) {		this.adminName = adminName;	}	public String getAdminID() {		return adminID;	}	public void setAdminID(String adminID) {		this.adminID = adminID;	}	public String getAdminGender() {		return adminGender;	}	public void setAdminGender(String adminGender) {		this.adminGender = adminGender;	}	public int getAdminAge() {		return adminAge;	}	public void setAdminAge(int adminAge) {		this.adminAge = adminAge;	}	public String getAdminPhone() {		return adminPhone;	}	public void setAdminPhone(String adminPhone) {		this.adminPhone = adminPhone;	}	public String getAdminAddress() {		return adminAddress;	}	public void setAdminAddress(String adminAddress) {		this.adminAddress = adminAddress;	}}

  

课程:

package com.csms.entity;/** * @author 李佩 *  * @version v1 *  * @time 2016/12/1 10:28 *  * @program 创建对应数据表实体的课程类,方便dao与数据库的连接 * */public class Course {	// 课程ID,唯一标识	private String courID;	// 课程名字	private String courName;	// 课程类型	private String courType;	// 课程学分	private int courCridits;	// 课程学时	private int courTimes;	// 课程描述	private int courNumber;	// 课程任课老师	private String courTeacher;	// 任课老师ID	private String teacherID;	public String getCourID() {		return courID;	}	public void setCourID(String courID) {		this.courID = courID;	}	public String getCourName() {		return courName;	}	public void setCourName(String courName) {		this.courName = courName;	}	public String getCourType() {		return courType;	}	public void setCourType(String courType) {		this.courType = courType;	}	public int getCourCridits() {		return courCridits;	}	public void setCourCridits(int courCridits) {		this.courCridits = courCridits;	}	public int getCourTimes() {		return courTimes;	}	public void setCourTimes(int courTimes) {		this.courTimes = courTimes;	}	public int getCourNumber() {		return courNumber;	}	public void setCourNumber(int courNumber) {		this.courNumber = courNumber;	}	public String getCourTeacher() {		return courTeacher;	}	public void setCourTeacher(String courTeacher) {		this.courTeacher = courTeacher;	}	public String getTeacherID() {		return teacherID;	}	public void setTeacherID(String teacherID) {		this.teacherID = teacherID;	}}

  

已选课程:

/** * @author 李佩 *  * @version v1 *  * @time 2016/12/2 21:03 *  * @program 创建对应数据表实体的已选课程类,方便dao与数据库的连接 * */package com.csms.entity;public class SelectCourse {	// 课程id	private String courseID;	// 学生id	private String studengID;	// 学生该科成绩	private double studentGrade;	public String getCourseID() {		return courseID;	}	public void setCourseID(String courseID) {		this.courseID = courseID;	}	public String getStudengID() {		return studengID;	}	public void setStudengID(String studengID) {		this.studengID = studengID;	}	public double getStudentGrade() {		return studentGrade;	}	public void setStudentGrade(double studentGrade) {		this.studentGrade = studentGrade;	}}

  

课程安排:

package com.csms.entity;/** * @author 李佩 *  * @version v1 *  * @time 2016/12/5 19:37 *  * @program 创建对应数据表实体的课程安排类,方便dao与数据库的连接 * */public class CourseArrange {	// 课程id	private String courseID;	// 课程老师	private String courseTeacher;	// 课程名字	private String courseName;	// 课程学分	private int courseGridits;	// 课程学时	private int courseTimes;	// 课程类型	private String courseType;	// 课程人数上限	private int courseNumber;	// 课程已选人数	private int courseSelectNumber;	// 课程安排	private String courseArrange;	public String getCourseID() {		return courseID;	}	public void setCourseID(String courseID) {		this.courseID = courseID;	}	public String getCourseTeacher() {		return courseTeacher;	}	public void setCourseTeacher(String courseTeacher) {		this.courseTeacher = courseTeacher;	}	public String getCourseName() {		return courseName;	}	public void setCourseName(String courseName) {		this.courseName = courseName;	}	public int getCourseGridits() {		return courseGridits;	}	public void setCourseGridits(int courseGridits) {		this.courseGridits = courseGridits;	}	public int getCourseTimes() {		return courseTimes;	}	public void setCourseTimes(int courseTimes) {		this.courseTimes = courseTimes;	}	public String getCourseType() {		return courseType;	}	public void setCourseType(String courseType) {		this.courseType = courseType;	}	public int getCourseNumber() {		return courseNumber;	}	public void setCourseNumber(int courseNumber) {		this.courseNumber = courseNumber;	}	public int getCourseSelectNumber() {		return courseSelectNumber;	}	public void setCourseSelectNumber(int courseSelectNumber) {		this.courseSelectNumber = courseSelectNumber;	}	public String getCourseArrange() {		return courseArrange;	}	public void setCourseArrange(String courseArrange) {		this.courseArrange = courseArrange;	}}

  

学生选课系统----实体类