更多成品,定做java毕业设计,请咨询管理员qq:2812491287

自动排课系统的设计与实现

自动排课系统的设计与实现登录注册界面

自动排课系统的设计与实现mysql数据库版本源码:

超级管理员表创建语句如下:


create table t_admin(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '超级管理员账号',
	password varchar(100) comment '超级管理员密码'
) comment '超级管理员';
insert into t_admin(username,password) values('admin','123456');

教室表创建语句如下:


create table t_jiaoshi(
	id int primary key auto_increment comment '主键',
	jiaoshiName varchar(100) comment '教室编号',
	lx varchar(100) comment '教室类型',
	address varchar(100) comment '地点'
) comment '教室';

课程表创建语句如下:


create table t_kc(
	id int primary key auto_increment comment '主键',
	kcName varchar(100) comment '课程',
	teacherId int comment '上课老师'
) comment '课程';

排课表创建语句如下:


create table t_pk(
	id int primary key auto_increment comment '主键',
	teacherId int comment '老师',
	kcId int comment '课程',
	jiaoshiId int comment '教室',
	yxId int comment '院系',
	xq varchar(100) comment '星期',
	rq varchar(100) comment '上午下午'
) comment '排课';

教务人员表创建语句如下:


create table t_ptadmin(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '账号',
	password varchar(100) comment '密码',
	ptadminName varchar(100) comment '姓名',
	headPic varchar(100) comment '头像',
	phone varchar(100) comment '电话',
	age varchar(100) comment '年龄'
) comment '教务人员';

学生表创建语句如下:


create table t_student(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '账号',
	password varchar(100) comment '密码',
	studentName varchar(100) comment '姓名',
	headPic varchar(100) comment '头像',
	phone varchar(100) comment '电话',
	age varchar(100) comment '年龄',
	yxId int comment '院系'
) comment '学生';

老师表创建语句如下:


create table t_teacher(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '账号',
	password varchar(100) comment '密码',
	teacherName varchar(100) comment '姓名',
	headPic varchar(100) comment '头像',
	phone varchar(100) comment '电话',
	age varchar(100) comment '年龄'
) comment '老师';

通知表创建语句如下:


create table t_tongzhi(
	id int primary key auto_increment comment '主键',
	title varchar(100) comment '通知标题',
	content varchar(100) comment '通知内容'
) comment '通知';

建议表创建语句如下:


create table t_yijian(
	id int primary key auto_increment comment '主键',
	teacherId int comment '老师',
	title varchar(100) comment '建议标题',
	content varchar(100) comment '建议内容'
) comment '建议';

院系表创建语句如下:


create table t_yx(
	id int primary key auto_increment comment '主键',
	yxName varchar(100) comment '院系'
) comment '院系';

自动排课系统的设计与实现oracle数据库版本源码:

超级管理员表创建语句如下:


create table t_admin(
	id integer,
	username varchar(100),
	password varchar(100)
);
insert into t_admin(id,username,password) values(1,'admin','123456');
--超级管理员字段加注释
comment on column t_admin.id is '主键';
comment on column t_admin.username is '超级管理员账号';
comment on column t_admin.password is '超级管理员密码';
--超级管理员表加注释
comment on table t_admin is '超级管理员';

教室表创建语句如下:


create table t_jiaoshi(
	id integer,
	jiaoshiName varchar(100),
	lx varchar(100),
	address varchar(100)
);
--教室字段加注释
comment on column t_jiaoshi.id is '主键';
comment on column t_jiaoshi.jiaoshiName is '教室编号';
comment on column t_jiaoshi.lx is '教室类型';
comment on column t_jiaoshi.address is '地点';
--教室表加注释
comment on table t_jiaoshi is '教室';

课程表创建语句如下:


create table t_kc(
	id integer,
	kcName varchar(100),
	teacherId int
);
--课程字段加注释
comment on column t_kc.id is '主键';
comment on column t_kc.kcName is '课程';
comment on column t_kc.teacherId is '上课老师';
--课程表加注释
comment on table t_kc is '课程';

排课表创建语句如下:


create table t_pk(
	id integer,
	teacherId int,
	kcId int,
	jiaoshiId int,
	yxId int,
	xq varchar(100),
	rq varchar(100)
);
--排课字段加注释
comment on column t_pk.id is '主键';
comment on column t_pk.teacherId is '老师';
comment on column t_pk.kcId is '课程';
comment on column t_pk.jiaoshiId is '教室';
comment on column t_pk.yxId is '院系';
comment on column t_pk.xq is '星期';
comment on column t_pk.rq is '上午下午';
--排课表加注释
comment on table t_pk is '排课';

教务人员表创建语句如下:


create table t_ptadmin(
	id integer,
	username varchar(100),
	password varchar(100),
	ptadminName varchar(100),
	headPic varchar(100),
	phone varchar(100),
	age varchar(100)
);
--教务人员字段加注释
comment on column t_ptadmin.id is '主键';
comment on column t_ptadmin.username is '账号';
comment on column t_ptadmin.password is '密码';
comment on column t_ptadmin.ptadminName is '姓名';
comment on column t_ptadmin.headPic is '头像';
comment on column t_ptadmin.phone is '电话';
comment on column t_ptadmin.age is '年龄';
--教务人员表加注释
comment on table t_ptadmin is '教务人员';

学生表创建语句如下:


create table t_student(
	id integer,
	username varchar(100),
	password varchar(100),
	studentName varchar(100),
	headPic varchar(100),
	phone varchar(100),
	age varchar(100),
	yxId int
);
--学生字段加注释
comment on column t_student.id is '主键';
comment on column t_student.username is '账号';
comment on column t_student.password is '密码';
comment on column t_student.studentName is '姓名';
comment on column t_student.headPic is '头像';
comment on column t_student.phone is '电话';
comment on column t_student.age is '年龄';
comment on column t_student.yxId is '院系';
--学生表加注释
comment on table t_student is '学生';

老师表创建语句如下:


create table t_teacher(
	id integer,
	username varchar(100),
	password varchar(100),
	teacherName varchar(100),
	headPic varchar(100),
	phone varchar(100),
	age varchar(100)
);
--老师字段加注释
comment on column t_teacher.id is '主键';
comment on column t_teacher.username is '账号';
comment on column t_teacher.password is '密码';
comment on column t_teacher.teacherName is '姓名';
comment on column t_teacher.headPic is '头像';
comment on column t_teacher.phone is '电话';
comment on column t_teacher.age is '年龄';
--老师表加注释
comment on table t_teacher is '老师';

通知表创建语句如下:


create table t_tongzhi(
	id integer,
	title varchar(100),
	content varchar(100)
);
--通知字段加注释
comment on column t_tongzhi.id is '主键';
comment on column t_tongzhi.title is '通知标题';
comment on column t_tongzhi.content is '通知内容';
--通知表加注释
comment on table t_tongzhi is '通知';

建议表创建语句如下:


create table t_yijian(
	id integer,
	teacherId int,
	title varchar(100),
	content varchar(100)
);
--建议字段加注释
comment on column t_yijian.id is '主键';
comment on column t_yijian.teacherId is '老师';
comment on column t_yijian.title is '建议标题';
comment on column t_yijian.content is '建议内容';
--建议表加注释
comment on table t_yijian is '建议';

院系表创建语句如下:


create table t_yx(
	id integer,
	yxName varchar(100)
);
--院系字段加注释
comment on column t_yx.id is '主键';
comment on column t_yx.yxName is '院系';
--院系表加注释
comment on table t_yx is '院系';

oracle特有,对应序列如下:


create sequence s_t_jiaoshi;
create sequence s_t_kc;
create sequence s_t_pk;
create sequence s_t_ptadmin;
create sequence s_t_student;
create sequence s_t_teacher;
create sequence s_t_tongzhi;
create sequence s_t_yijian;
create sequence s_t_yx;

自动排课系统的设计与实现sqlserver数据库版本源码:

超级管理员表创建语句如下:


--超级管理员
create table t_admin(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--超级管理员账号
	password varchar(100)--超级管理员密码
);
insert into t_admin(username,password) values('admin','123456');

教室表创建语句如下:


--教室表注释
create table t_jiaoshi(
	id int identity(1,1) primary key not null,--主键
	jiaoshiName varchar(100),--教室编号
	lx varchar(100),--教室类型
	address varchar(100)--地点
);

课程表创建语句如下:


--课程表注释
create table t_kc(
	id int identity(1,1) primary key not null,--主键
	kcName varchar(100),--课程
	teacherId int--上课老师
);

排课表创建语句如下:


--排课表注释
create table t_pk(
	id int identity(1,1) primary key not null,--主键
	teacherId int,--老师
	kcId int,--课程
	jiaoshiId int,--教室
	yxId int,--院系
	xq varchar(100),--星期
	rq varchar(100)--上午下午
);

教务人员表创建语句如下:


--教务人员表注释
create table t_ptadmin(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--账号
	password varchar(100),--密码
	ptadminName varchar(100),--姓名
	headPic varchar(100),--头像
	phone varchar(100),--电话
	age varchar(100)--年龄
);

学生表创建语句如下:


--学生表注释
create table t_student(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--账号
	password varchar(100),--密码
	studentName varchar(100),--姓名
	headPic varchar(100),--头像
	phone varchar(100),--电话
	age varchar(100),--年龄
	yxId int--院系
);

老师表创建语句如下:


--老师表注释
create table t_teacher(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--账号
	password varchar(100),--密码
	teacherName varchar(100),--姓名
	headPic varchar(100),--头像
	phone varchar(100),--电话
	age varchar(100)--年龄
);

通知表创建语句如下:


--通知表注释
create table t_tongzhi(
	id int identity(1,1) primary key not null,--主键
	title varchar(100),--通知标题
	content varchar(100)--通知内容
);

建议表创建语句如下:


--建议表注释
create table t_yijian(
	id int identity(1,1) primary key not null,--主键
	teacherId int,--老师
	title varchar(100),--建议标题
	content varchar(100)--建议内容
);

院系表创建语句如下:


--院系表注释
create table t_yx(
	id int identity(1,1) primary key not null,--主键
	yxName varchar(100)--院系
);

自动排课系统的设计与实现登录后主页

自动排课系统的设计与实现spring+springMVC+hibernate框架对象(javaBean,pojo)设计:

教室javaBean创建语句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity

//教室
@Table(name = "t_jiaoshi")
public class Jiaoshi {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//教室编号
private String jiaoshiName;
//教室类型
private String lx;
//地点
private String address;
public String getJiaoshiName() {return jiaoshiName;}
public void setJiaoshiName(String jiaoshiName) {this.jiaoshiName = jiaoshiName;}
public String getLx() {return lx;}
public void setLx(String lx) {this.lx = lx;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
}

课程javaBean创建语句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity

//课程
@Table(name = "t_kc")
public class Kc {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//课程
private String kcName;
//上课老师
private Integer teacherId;
public String getKcName() {return kcName;}
public void setKcName(String kcName) {this.kcName = kcName;}
public Integer getTeacherId() {return teacherId;}
public void setTeacherId(Integer teacherId) {this.teacherId = teacherId;}
}

排课javaBean创建语句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity

//排课
@Table(name = "t_pk")
public class Pk {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//老师
private Integer teacherId;
//课程
private Integer kcId;
//教室
private Integer jiaoshiId;
//院系
private Integer yxId;
//星期
private String xq;
//上午下午
private String rq;
public Integer getTeacherId() {return teacherId;}
public void setTeacherId(Integer teacherId) {this.teacherId = teacherId;}
public Integer getKcId() {return kcId;}
public void setKcId(Integer kcId) {this.kcId = kcId;}
public Integer getJiaoshiId() {return jiaoshiId;}
public void setJiaoshiId(Integer jiaoshiId) {this.jiaoshiId = jiaoshiId;}
public Integer getYxId() {return yxId;}
public void setYxId(Integer yxId) {this.yxId = yxId;}
public String getXq() {return xq;}
public void setXq(String xq) {this.xq = xq;}
public String getRq() {return rq;}
public void setRq(String rq) {this.rq = rq;}
}

教务人员javaBean创建语句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity

//教务人员
@Table(name = "t_ptadmin")
public class Ptadmin {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//账号
private String username;
//密码
private String password;
//姓名
private String ptadminName;
//头像
private String headPic;
//电话
private String phone;
//年龄
private String age;
public String getUsername() {return username;}
public void setUsername(String username) {this.username = username;}
public String getPassword() {return password;}
public void setPassword(String password) {this.password = password;}
public String getPtadminName() {return ptadminName;}
public void setPtadminName(String ptadminName) {this.ptadminName = ptadminName;}
public String getHeadPic() {return headPic;}
public void setHeadPic(String headPic) {this.headPic = headPic;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
}

学生javaBean创建语句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity

//学生
@Table(name = "t_student")
public class Student {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//账号
private String username;
//密码
private String password;
//姓名
private String studentName;
//头像
private String headPic;
//电话
private String phone;
//年龄
private String age;
//院系
private Integer yxId;
public String getUsername() {return username;}
public void setUsername(String username) {this.username = username;}
public String getPassword() {return password;}
public void setPassword(String password) {this.password = password;}
public String getStudentName() {return studentName;}
public void setStudentName(String studentName) {this.studentName = studentName;}
public String getHeadPic() {return headPic;}
public void setHeadPic(String headPic) {this.headPic = headPic;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
public Integer getYxId() {return yxId;}
public void setYxId(Integer yxId) {this.yxId = yxId;}
}

老师javaBean创建语句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity

//老师
@Table(name = "t_teacher")
public class Teacher {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//账号
private String username;
//密码
private String password;
//姓名
private String teacherName;
//头像
private String headPic;
//电话
private String phone;
//年龄
private String age;
public String getUsername() {return username;}
public void setUsername(String username) {this.username = username;}
public String getPassword() {return password;}
public void setPassword(String password) {this.password = password;}
public String getTeacherName() {return teacherName;}
public void setTeacherName(String teacherName) {this.teacherName = teacherName;}
public String getHeadPic() {return headPic;}
public void setHeadPic(String headPic) {this.headPic = headPic;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
}

通知javaBean创建语句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity

//通知
@Table(name = "t_tongzhi")
public class Tongzhi {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//通知标题
private String title;
//通知内容
private String content;
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
}

建议javaBean创建语句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity

//建议
@Table(name = "t_yijian")
public class Yijian {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//老师
private Integer teacherId;
//建议标题
private String title;
//建议内容
private String content;
public Integer getTeacherId() {return teacherId;}
public void setTeacherId(Integer teacherId) {this.teacherId = teacherId;}
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
}

院系javaBean创建语句如下:


package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity

//院系
@Table(name = "t_yx")
public class Yx {
//主键
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//院系
private String yxName;
public String getYxName() {return yxName;}
public void setYxName(String yxName) {this.yxName = yxName;}
}

自动排课系统的设计与实现spring+springMVC+mybatis框架对象(javaBean,pojo)设计:

教室javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

//教室
public class Jiaoshi  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//教室编号
private String jiaoshiName;
//教室类型
private String lx;
//地点
private String address;
public String getJiaoshiName() {return jiaoshiName;}
public void setJiaoshiName(String jiaoshiName) {this.jiaoshiName = jiaoshiName;}
public String getLx() {return lx;}
public void setLx(String lx) {this.lx = lx;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
}

课程javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

//课程
public class Kc  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//课程
private String kcName;
//上课老师
private Integer teacherId;
public String getKcName() {return kcName;}
public void setKcName(String kcName) {this.kcName = kcName;}
public Integer getTeacherId() {return teacherId;}
public void setTeacherId(Integer teacherId) {this.teacherId = teacherId;}
}

排课javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

//排课
public class Pk  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//老师
private Integer teacherId;
//课程
private Integer kcId;
//教室
private Integer jiaoshiId;
//院系
private Integer yxId;
//星期
private String xq;
//上午下午
private String rq;
public Integer getTeacherId() {return teacherId;}
public void setTeacherId(Integer teacherId) {this.teacherId = teacherId;}
public Integer getKcId() {return kcId;}
public void setKcId(Integer kcId) {this.kcId = kcId;}
public Integer getJiaoshiId() {return jiaoshiId;}
public void setJiaoshiId(Integer jiaoshiId) {this.jiaoshiId = jiaoshiId;}
public Integer getYxId() {return yxId;}
public void setYxId(Integer yxId) {this.yxId = yxId;}
public String getXq() {return xq;}
public void setXq(String xq) {this.xq = xq;}
public String getRq() {return rq;}
public void setRq(String rq) {this.rq = rq;}
}

教务人员javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

//教务人员
public class Ptadmin  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//账号
private String username;
//密码
private String password;
//姓名
private String ptadminName;
//头像
private String headPic;
//电话
private String phone;
//年龄
private String age;
public String getUsername() {return username;}
public void setUsername(String username) {this.username = username;}
public String getPassword() {return password;}
public void setPassword(String password) {this.password = password;}
public String getPtadminName() {return ptadminName;}
public void setPtadminName(String ptadminName) {this.ptadminName = ptadminName;}
public String getHeadPic() {return headPic;}
public void setHeadPic(String headPic) {this.headPic = headPic;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
}

学生javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

//学生
public class Student  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//账号
private String username;
//密码
private String password;
//姓名
private String studentName;
//头像
private String headPic;
//电话
private String phone;
//年龄
private String age;
//院系
private Integer yxId;
public String getUsername() {return username;}
public void setUsername(String username) {this.username = username;}
public String getPassword() {return password;}
public void setPassword(String password) {this.password = password;}
public String getStudentName() {return studentName;}
public void setStudentName(String studentName) {this.studentName = studentName;}
public String getHeadPic() {return headPic;}
public void setHeadPic(String headPic) {this.headPic = headPic;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
public Integer getYxId() {return yxId;}
public void setYxId(Integer yxId) {this.yxId = yxId;}
}

老师javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

//老师
public class Teacher  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//账号
private String username;
//密码
private String password;
//姓名
private String teacherName;
//头像
private String headPic;
//电话
private String phone;
//年龄
private String age;
public String getUsername() {return username;}
public void setUsername(String username) {this.username = username;}
public String getPassword() {return password;}
public void setPassword(String password) {this.password = password;}
public String getTeacherName() {return teacherName;}
public void setTeacherName(String teacherName) {this.teacherName = teacherName;}
public String getHeadPic() {return headPic;}
public void setHeadPic(String headPic) {this.headPic = headPic;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
}

通知javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

//通知
public class Tongzhi  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//通知标题
private String title;
//通知内容
private String content;
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
}

建议javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

//建议
public class Yijian  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//老师
private Integer teacherId;
//建议标题
private String title;
//建议内容
private String content;
public Integer getTeacherId() {return teacherId;}
public void setTeacherId(Integer teacherId) {this.teacherId = teacherId;}
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
}

院系javaBean创建语句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;

//院系
public class Yx  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//院系
private String yxName;
public String getYxName() {return yxName;}
public void setYxName(String yxName) {this.yxName = yxName;}
}

评论