Students ' Course selection system----entity class

Source: Internet
Author: User

Students:

Package com.csms.entity;/** * @author Li Pei * * @version v1 * * @time 2016/12/1 10:10 * * @program Create a student class for the corresponding data table entity, convenient DAO and database Connection * */public class Student {//Student login System Login private string loginname;//login password private string loginpsd;//student number private string s tuid;//Student Name private string stuname;//student age private int stuage;//student sex private string stugender;//student affiliated Department private string STUSD ept;//students belong to class 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;}}

  

Teacher:

Package com.csms.entity;/** * @author Li Pei * * @version v1 * * @time 2016/12/1 10:17 * * @program create the corresponding data table entity teacher class, convenient DAO and database Connection * */public class Teacher {//Logon name private string loginname;//login password private string loginpsd;//teacher Idprivate string teacid;/ /teacher Name private string teacname;//teacher age private int teacage;//teacher sex private string Teacgender;public string Getloginname () {RE Turn 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;}} 

  

Administrator:

Package com.csms.entity;/** * @author Li Pei * * @version v1 * * @time 2016/12/1 10:23 * * @program Create an administrator class for the corresponding data table entity, which facilitates DAO and data Library Connection * */public class Adminitartor {//Login private string loginname;//login password private string loginpsd;//administrator name private string a dminname;//Administrator Idprivate string adminid;//Admin gender private String admingender;//admin age private int adminage;// Administrator phone number private string adminphone;//administrator address 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;}}

  

Course:

Package com.csms.entity;/** * @author Li Pei * * @version v1 * * @time 2016/12/1 10:28 * * @program Create a course class for the corresponding data table entity to facilitate DAO and database Connection * */public class Course {//course ID, uniquely identifies private string courid;//course name private string courname;//course type private string Courty pe;//Course credits private int courcridits;//course hours private int courtimes;//Course description Private int cournumber;//Course instructor Private String CourT eacher;//Instructor Idprivate 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;}}

  

Selected courses:

/** * @author Li Pei * *  @version v1 *  * @time 2016/12/2 21:03 *  * @program Create the selected course class for the corresponding data table entity to facilitate DAO's connection to the database * */packa GE Com.csms.entity;public class Selectcourse {//course idprivate string courseid;//student idprivate string studengid;//Student the section results pri Vate 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;}}

  

Course Schedule:

Package com.csms.entity;/** * @author Li Pei * * @version v1 * * @time 2016/12/5 19:37 * * @program create the corresponding data table entity curriculum class, convenient DAO and the number According to the connection of the library * */public class Coursearrange {//Course Idprivate String courseid;//course teacher Private String courseteacher;//Course name Private St Ring coursename;//Course credits private int coursegridits;//course hours private int coursetimes;//course type Private String coursetype;//course number on private int coursenumber;//course selected number private int courseselectnumber;//course arrangement 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 intGetcoursetimes () {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;}}

  

Students ' Course selection system----entity class

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.