学生作业管理系统

学生作业管理系统登录注册界面

学生作业管理系统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_banji(
	id int primary key auto_increment comment '主键',
	banjiName varchar(100) comment '班级号',
	fdy varchar(100) comment '辅导员',
	nj varchar(100) comment '年纪'
) comment '班级';

作业提交表创建语句如下:


create table t_huida(
	id int primary key auto_increment comment '主键',
	zuoyeId int comment '作业',
	teacherId int comment '老师',
	studentId int comment '学生',
	pic varchar(100) comment '图片',
	fileUrl varchar(100) comment '文件',
	content varchar(100) comment '内容',
	insertDate datetime comment '提交日期',
	status varchar(100) comment '状态',
	pf int comment '评分',
	py varchar(100) comment '评语',
	pfDate datetime comment '评分日期'
) comment '作业提交';

讨论平台表创建语句如下:


create table t_jiaoliu(
	id int primary key auto_increment comment '主键',
	fbr varchar(100) comment '发布人',
	title varchar(100) comment '标题',
	pic varchar(100) comment '图片',
	content varchar(100) comment '内容'
) comment '讨论平台';

讨论平台记录表创建语句如下:


create table t_jiaoliulist(
	id int primary key auto_increment comment '主键',
	jiaoliuId int comment '交流平台',
	hdrName varchar(100) comment '回答人',
	insertDate datetime comment '日期',
	content varchar(100) comment '内容'
) comment '讨论平台记录';

教师评价表创建语句如下:


create table t_jspj(
	id int primary key auto_increment comment '主键',
	teacherId int comment '老师',
	studentId int comment '学生',
	insertDate datetime comment '日期',
	content varchar(100) comment '评价内容',
	fs int comment '评价分数'
) comment '教师评价';

课程表创建语句如下:


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

学生表创建语句如下:


create table t_student(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '账号',
	password varchar(100) comment '密码',
	banjiId int comment '班级',
	studentName varchar(100) comment '姓名',
	headPic varchar(100) comment '头像',
	phone varchar(100) comment '电话',
	age varchar(100) comment '年龄',
	sex varchar(100) 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 '年龄',
	sex varchar(100) comment '性别',
	zw varchar(100) comment '职位'
) comment '老师';

学生提问表创建语句如下:


create table t_tiwen(
	id int primary key auto_increment comment '主键',
	studentId int comment '学生',
	tiwenName varchar(100) comment '问题',
	pic varchar(100) comment '图片',
	content varchar(100) comment '回答',
	insertDate datetime comment '时间',
	status varchar(100) comment '状态'
) comment '学生提问';

问题表创建语句如下:


create table t_xt(
	id int primary key auto_increment comment '主键',
	wt varchar(100) comment '问题',
	content varchar(100) comment '答案'
) comment '问题';

资源表创建语句如下:


create table t_ziyuan(
	id int primary key auto_increment comment '主键',
	ziyuanName varchar(100) comment '资源名称',
	pic varchar(100) comment '图片',
	fileUrl varchar(100) comment '文件',
	insertDate datetime comment '时间'
) comment '资源';

作业发布表创建语句如下:


create table t_zuoye(
	id int primary key auto_increment comment '主键',
	teacherId int comment '老师',
	kechengName varchar(100) comment '课程',
	banjiId int comment '班级',
	zuoyeName varchar(100) comment '作业标题',
	pic varchar(100) comment '图片',
	fileUrl varchar(100) comment '文件',
	content varchar(100) comment '内容',
	insertDate datetime 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_banji(
	id integer,
	banjiName varchar(100),
	fdy varchar(100),
	nj varchar(100)
);
--班级字段加注释
comment on column t_banji.id is '主键';
comment on column t_banji.banjiName is '班级号';
comment on column t_banji.fdy is '辅导员';
comment on column t_banji.nj is '年纪';
--班级表加注释
comment on table t_banji is '班级';

作业提交表创建语句如下:


create table t_huida(
	id integer,
	zuoyeId int,
	teacherId int,
	studentId int,
	pic varchar(100),
	fileUrl varchar(100),
	content varchar(100),
	insertDate datetime,
	status varchar(100),
	pf int,
	py varchar(100),
	pfDate datetime
);
--作业提交字段加注释
comment on column t_huida.id is '主键';
comment on column t_huida.zuoyeId is '作业';
comment on column t_huida.teacherId is '老师';
comment on column t_huida.studentId is '学生';
comment on column t_huida.pic is '图片';
comment on column t_huida.fileUrl is '文件';
comment on column t_huida.content is '内容';
comment on column t_huida.insertDate is '提交日期';
comment on column t_huida.status is '状态';
comment on column t_huida.pf is '评分';
comment on column t_huida.py is '评语';
comment on column t_huida.pfDate is '评分日期';
--作业提交表加注释
comment on table t_huida is '作业提交';

讨论平台表创建语句如下:


create table t_jiaoliu(
	id integer,
	fbr varchar(100),
	title varchar(100),
	pic varchar(100),
	content varchar(100)
);
--讨论平台字段加注释
comment on column t_jiaoliu.id is '主键';
comment on column t_jiaoliu.fbr is '发布人';
comment on column t_jiaoliu.title is '标题';
comment on column t_jiaoliu.pic is '图片';
comment on column t_jiaoliu.content is '内容';
--讨论平台表加注释
comment on table t_jiaoliu is '讨论平台';

讨论平台记录表创建语句如下:


create table t_jiaoliulist(
	id integer,
	jiaoliuId int,
	hdrName varchar(100),
	insertDate datetime,
	content varchar(100)
);
--讨论平台记录字段加注释
comment on column t_jiaoliulist.id is '主键';
comment on column t_jiaoliulist.jiaoliuId is '交流平台';
comment on column t_jiaoliulist.hdrName is '回答人';
comment on column t_jiaoliulist.insertDate is '日期';
comment on column t_jiaoliulist.content is '内容';
--讨论平台记录表加注释
comment on table t_jiaoliulist is '讨论平台记录';

教师评价表创建语句如下:


create table t_jspj(
	id integer,
	teacherId int,
	studentId int,
	insertDate datetime,
	content varchar(100),
	fs int
);
--教师评价字段加注释
comment on column t_jspj.id is '主键';
comment on column t_jspj.teacherId is '老师';
comment on column t_jspj.studentId is '学生';
comment on column t_jspj.insertDate is '日期';
comment on column t_jspj.content is '评价内容';
comment on column t_jspj.fs is '评价分数';
--教师评价表加注释
comment on table t_jspj is '教师评价';

课程表创建语句如下:


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

学生表创建语句如下:


create table t_student(
	id integer,
	username varchar(100),
	password varchar(100),
	banjiId int,
	studentName varchar(100),
	headPic varchar(100),
	phone varchar(100),
	age varchar(100),
	sex varchar(100)
);
--学生字段加注释
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.banjiId 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.sex 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),
	sex varchar(100),
	zw 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 column t_teacher.sex is '性别';
comment on column t_teacher.zw is '职位';
--老师表加注释
comment on table t_teacher is '老师';

学生提问表创建语句如下:


create table t_tiwen(
	id integer,
	studentId int,
	tiwenName varchar(100),
	pic varchar(100),
	content varchar(100),
	insertDate datetime,
	status varchar(100)
);
--学生提问字段加注释
comment on column t_tiwen.id is '主键';
comment on column t_tiwen.studentId is '学生';
comment on column t_tiwen.tiwenName is '问题';
comment on column t_tiwen.pic is '图片';
comment on column t_tiwen.content is '回答';
comment on column t_tiwen.insertDate is '时间';
comment on column t_tiwen.status is '状态';
--学生提问表加注释
comment on table t_tiwen is '学生提问';

问题表创建语句如下:


create table t_xt(
	id integer,
	wt varchar(100),
	content varchar(100)
);
--问题字段加注释
comment on column t_xt.id is '主键';
comment on column t_xt.wt is '问题';
comment on column t_xt.content is '答案';
--问题表加注释
comment on table t_xt is '问题';

资源表创建语句如下:


create table t_ziyuan(
	id integer,
	ziyuanName varchar(100),
	pic varchar(100),
	fileUrl varchar(100),
	insertDate datetime
);
--资源字段加注释
comment on column t_ziyuan.id is '主键';
comment on column t_ziyuan.ziyuanName is '资源名称';
comment on column t_ziyuan.pic is '图片';
comment on column t_ziyuan.fileUrl is '文件';
comment on column t_ziyuan.insertDate is '时间';
--资源表加注释
comment on table t_ziyuan is '资源';

作业发布表创建语句如下:


create table t_zuoye(
	id integer,
	teacherId int,
	kechengName varchar(100),
	banjiId int,
	zuoyeName varchar(100),
	pic varchar(100),
	fileUrl varchar(100),
	content varchar(100),
	insertDate datetime
);
--作业发布字段加注释
comment on column t_zuoye.id is '主键';
comment on column t_zuoye.teacherId is '老师';
comment on column t_zuoye.kechengName is '课程';
comment on column t_zuoye.banjiId is '班级';
comment on column t_zuoye.zuoyeName is '作业标题';
comment on column t_zuoye.pic is '图片';
comment on column t_zuoye.fileUrl is '文件';
comment on column t_zuoye.content is '内容';
comment on column t_zuoye.insertDate is '发布日期';
--作业发布表加注释
comment on table t_zuoye is '作业发布';

oracle特有,对应序列如下:


create sequence s_t_banji;
create sequence s_t_huida;
create sequence s_t_jiaoliu;
create sequence s_t_jiaoliulist;
create sequence s_t_jspj;
create sequence s_t_kecheng;
create sequence s_t_student;
create sequence s_t_teacher;
create sequence s_t_tiwen;
create sequence s_t_xt;
create sequence s_t_ziyuan;
create sequence s_t_zuoye;

学生作业管理系统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_banji(
	id int identity(1,1) primary key not null,--主键
	banjiName varchar(100),--班级号
	fdy varchar(100),--辅导员
	nj varchar(100)--年纪
);

作业提交表创建语句如下:


--作业提交表注释
create table t_huida(
	id int identity(1,1) primary key not null,--主键
	zuoyeId int,--作业
	teacherId int,--老师
	studentId int,--学生
	pic varchar(100),--图片
	fileUrl varchar(100),--文件
	content varchar(100),--内容
	insertDate datetime,--提交日期
	status varchar(100),--状态
	pf int,--评分
	py varchar(100),--评语
	pfDate datetime--评分日期
);

讨论平台表创建语句如下:


--讨论平台表注释
create table t_jiaoliu(
	id int identity(1,1) primary key not null,--主键
	fbr varchar(100),--发布人
	title varchar(100),--标题
	pic varchar(100),--图片
	content varchar(100)--内容
);

讨论平台记录表创建语句如下:


--讨论平台记录表注释
create table t_jiaoliulist(
	id int identity(1,1) primary key not null,--主键
	jiaoliuId int,--交流平台
	hdrName varchar(100),--回答人
	insertDate datetime,--日期
	content varchar(100)--内容
);

教师评价表创建语句如下:


--教师评价表注释
create table t_jspj(
	id int identity(1,1) primary key not null,--主键
	teacherId int,--老师
	studentId int,--学生
	insertDate datetime,--日期
	content varchar(100),--评价内容
	fs int--评价分数
);

课程表创建语句如下:


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

学生表创建语句如下:


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

老师表创建语句如下:


--老师表注释
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),--年龄
	sex varchar(100),--性别
	zw varchar(100)--职位
);

学生提问表创建语句如下:


--学生提问表注释
create table t_tiwen(
	id int identity(1,1) primary key not null,--主键
	studentId int,--学生
	tiwenName varchar(100),--问题
	pic varchar(100),--图片
	content varchar(100),--回答
	insertDate datetime,--时间
	status varchar(100)--状态
);

问题表创建语句如下:


--问题表注释
create table t_xt(
	id int identity(1,1) primary key not null,--主键
	wt varchar(100),--问题
	content varchar(100)--答案
);

资源表创建语句如下:


--资源表注释
create table t_ziyuan(
	id int identity(1,1) primary key not null,--主键
	ziyuanName varchar(100),--资源名称
	pic varchar(100),--图片
	fileUrl varchar(100),--文件
	insertDate datetime--时间
);

作业发布表创建语句如下:


--作业发布表注释
create table t_zuoye(
	id int identity(1,1) primary key not null,--主键
	teacherId int,--老师
	kechengName varchar(100),--课程
	banjiId int,--班级
	zuoyeName varchar(100),--作业标题
	pic varchar(100),--图片
	fileUrl varchar(100),--文件
	content varchar(100),--内容
	insertDate datetime--发布日期
);

学生作业管理系统登录后主页

学生作业管理系统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_banji")
public class Banji {
//主键
@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 banjiName;
//辅导员
private String fdy;
//年纪
private String nj;
public String getBanjiName() {return banjiName;}
public void setBanjiName(String banjiName) {this.banjiName = banjiName;}
public String getFdy() {return fdy;}
public void setFdy(String fdy) {this.fdy = fdy;}
public String getNj() {return nj;}
public void setNj(String nj) {this.nj = nj;}
}

作业提交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_huida")
public class Huida {
//主键
@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 zuoyeId;
//老师
private Integer teacherId;
//学生
private Integer studentId;
//图片
private String pic;
//文件
private String fileUrl;
//内容
private String content;
//提交日期
private Date insertDate;
//状态
private String status;
//评分
private Integer pf;
//评语
private String py;
//评分日期
private Date pfDate;
public Integer getZuoyeId() {return zuoyeId;}
public void setZuoyeId(Integer zuoyeId) {this.zuoyeId = zuoyeId;}
public Integer getTeacherId() {return teacherId;}
public void setTeacherId(Integer teacherId) {this.teacherId = teacherId;}
public Integer getStudentId() {return studentId;}
public void setStudentId(Integer studentId) {this.studentId = studentId;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public String getFileUrl() {return fileUrl;}
public void setFileUrl(String fileUrl) {this.fileUrl = fileUrl;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
public Integer getPf() {return pf;}
public void setPf(Integer pf) {this.pf = pf;}
public String getPy() {return py;}
public void setPy(String py) {this.py = py;}
public Date getPfDate() {return pfDate;}
public void setPfDate(Date pfDate) {this.pfDate = pfDate;}
}

讨论平台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_jiaoliu")
public class Jiaoliu {
//主键
@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 fbr;
//标题
private String title;
//图片
private String pic;
//内容
private String content;
public String getFbr() {return fbr;}
public void setFbr(String fbr) {this.fbr = fbr;}
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
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_jiaoliulist")
public class Jiaoliulist {
//主键
@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 jiaoliuId;
//回答人
private String hdrName;
//日期
private Date insertDate;
//内容
private String content;
public Integer getJiaoliuId() {return jiaoliuId;}
public void setJiaoliuId(Integer jiaoliuId) {this.jiaoliuId = jiaoliuId;}
public String getHdrName() {return hdrName;}
public void setHdrName(String hdrName) {this.hdrName = hdrName;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
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_jspj")
public class Jspj {
//主键
@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 studentId;
//日期
private Date insertDate;
//评价内容
private String content;
//评价分数
private Integer fs;
public Integer getTeacherId() {return teacherId;}
public void setTeacherId(Integer teacherId) {this.teacherId = teacherId;}
public Integer getStudentId() {return studentId;}
public void setStudentId(Integer studentId) {this.studentId = studentId;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public Integer getFs() {return fs;}
public void setFs(Integer fs) {this.fs = fs;}
}

课程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_kecheng")
public class Kecheng {
//主键
@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 kechengName;
//老师
private Integer teacherId;
public String getKechengName() {return kechengName;}
public void setKechengName(String kechengName) {this.kechengName = kechengName;}
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_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 Integer banjiId;
//姓名
private String studentName;
//头像
private String headPic;
//电话
private String phone;
//年龄
private String age;
//性别
private String sex;
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 Integer getBanjiId() {return banjiId;}
public void setBanjiId(Integer banjiId) {this.banjiId = banjiId;}
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 String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
}

老师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;
//性别
private String sex;
//职位
private String zw;
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;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getZw() {return zw;}
public void setZw(String zw) {this.zw = zw;}
}

学生提问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_tiwen")
public class Tiwen {
//主键
@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 studentId;
//问题
private String tiwenName;
//图片
private String pic;
//回答
private String content;
//时间
private Date insertDate;
//状态
private String status;
public Integer getStudentId() {return studentId;}
public void setStudentId(Integer studentId) {this.studentId = studentId;}
public String getTiwenName() {return tiwenName;}
public void setTiwenName(String tiwenName) {this.tiwenName = tiwenName;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
}

问题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_xt")
public class Xt {
//主键
@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 wt;
//答案
private String content;
public String getWt() {return wt;}
public void setWt(String wt) {this.wt = wt;}
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_ziyuan")
public class Ziyuan {
//主键
@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 ziyuanName;
//图片
private String pic;
//文件
private String fileUrl;
//时间
private Date insertDate;
public String getZiyuanName() {return ziyuanName;}
public void setZiyuanName(String ziyuanName) {this.ziyuanName = ziyuanName;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public String getFileUrl() {return fileUrl;}
public void setFileUrl(String fileUrl) {this.fileUrl = fileUrl;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}

作业发布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_zuoye")
public class Zuoye {
//主键
@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 kechengName;
//班级
private Integer banjiId;
//作业标题
private String zuoyeName;
//图片
private String pic;
//文件
private String fileUrl;
//内容
private String content;
//发布日期
private Date insertDate;
public Integer getTeacherId() {return teacherId;}
public void setTeacherId(Integer teacherId) {this.teacherId = teacherId;}
public String getKechengName() {return kechengName;}
public void setKechengName(String kechengName) {this.kechengName = kechengName;}
public Integer getBanjiId() {return banjiId;}
public void setBanjiId(Integer banjiId) {this.banjiId = banjiId;}
public String getZuoyeName() {return zuoyeName;}
public void setZuoyeName(String zuoyeName) {this.zuoyeName = zuoyeName;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public String getFileUrl() {return fileUrl;}
public void setFileUrl(String fileUrl) {this.fileUrl = fileUrl;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}

学生作业管理系统spring+springMVC+mybatis框架对象(javaBean,pojo)设计:

班级javaBean创建语句如下:


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

//班级
public class Banji  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//班级号
private String banjiName;
//辅导员
private String fdy;
//年纪
private String nj;
public String getBanjiName() {return banjiName;}
public void setBanjiName(String banjiName) {this.banjiName = banjiName;}
public String getFdy() {return fdy;}
public void setFdy(String fdy) {this.fdy = fdy;}
public String getNj() {return nj;}
public void setNj(String nj) {this.nj = nj;}
}

作业提交javaBean创建语句如下:


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

//作业提交
public class Huida  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//作业
private Integer zuoyeId;
//老师
private Integer teacherId;
//学生
private Integer studentId;
//图片
private String pic;
//文件
private String fileUrl;
//内容
private String content;
//提交日期
private Date insertDate;
//状态
private String status;
//评分
private Integer pf;
//评语
private String py;
//评分日期
private Date pfDate;
public Integer getZuoyeId() {return zuoyeId;}
public void setZuoyeId(Integer zuoyeId) {this.zuoyeId = zuoyeId;}
public Integer getTeacherId() {return teacherId;}
public void setTeacherId(Integer teacherId) {this.teacherId = teacherId;}
public Integer getStudentId() {return studentId;}
public void setStudentId(Integer studentId) {this.studentId = studentId;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public String getFileUrl() {return fileUrl;}
public void setFileUrl(String fileUrl) {this.fileUrl = fileUrl;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
public Integer getPf() {return pf;}
public void setPf(Integer pf) {this.pf = pf;}
public String getPy() {return py;}
public void setPy(String py) {this.py = py;}
public Date getPfDate() {return pfDate;}
public void setPfDate(Date pfDate) {this.pfDate = pfDate;}
}

讨论平台javaBean创建语句如下:


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

//讨论平台
public class Jiaoliu  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//发布人
private String fbr;
//标题
private String title;
//图片
private String pic;
//内容
private String content;
public String getFbr() {return fbr;}
public void setFbr(String fbr) {this.fbr = fbr;}
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
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 Jiaoliulist  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//交流平台
private Integer jiaoliuId;
//回答人
private String hdrName;
//日期
private Date insertDate;
//内容
private String content;
public Integer getJiaoliuId() {return jiaoliuId;}
public void setJiaoliuId(Integer jiaoliuId) {this.jiaoliuId = jiaoliuId;}
public String getHdrName() {return hdrName;}
public void setHdrName(String hdrName) {this.hdrName = hdrName;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
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 Jspj  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//老师
private Integer teacherId;
//学生
private Integer studentId;
//日期
private Date insertDate;
//评价内容
private String content;
//评价分数
private Integer fs;
public Integer getTeacherId() {return teacherId;}
public void setTeacherId(Integer teacherId) {this.teacherId = teacherId;}
public Integer getStudentId() {return studentId;}
public void setStudentId(Integer studentId) {this.studentId = studentId;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public Integer getFs() {return fs;}
public void setFs(Integer fs) {this.fs = fs;}
}

课程javaBean创建语句如下:


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

//课程
public class Kecheng  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//课程
private String kechengName;
//老师
private Integer teacherId;
public String getKechengName() {return kechengName;}
public void setKechengName(String kechengName) {this.kechengName = kechengName;}
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 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 Integer banjiId;
//姓名
private String studentName;
//头像
private String headPic;
//电话
private String phone;
//年龄
private String age;
//性别
private String sex;
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 Integer getBanjiId() {return banjiId;}
public void setBanjiId(Integer banjiId) {this.banjiId = banjiId;}
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 String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
}

老师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;
//性别
private String sex;
//职位
private String zw;
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;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getZw() {return zw;}
public void setZw(String zw) {this.zw = zw;}
}

学生提问javaBean创建语句如下:


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

//学生提问
public class Tiwen  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//学生
private Integer studentId;
//问题
private String tiwenName;
//图片
private String pic;
//回答
private String content;
//时间
private Date insertDate;
//状态
private String status;
public Integer getStudentId() {return studentId;}
public void setStudentId(Integer studentId) {this.studentId = studentId;}
public String getTiwenName() {return tiwenName;}
public void setTiwenName(String tiwenName) {this.tiwenName = tiwenName;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
}

问题javaBean创建语句如下:


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

//问题
public class Xt  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//问题
private String wt;
//答案
private String content;
public String getWt() {return wt;}
public void setWt(String wt) {this.wt = wt;}
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 Ziyuan  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//资源名称
private String ziyuanName;
//图片
private String pic;
//文件
private String fileUrl;
//时间
private Date insertDate;
public String getZiyuanName() {return ziyuanName;}
public void setZiyuanName(String ziyuanName) {this.ziyuanName = ziyuanName;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public String getFileUrl() {return fileUrl;}
public void setFileUrl(String fileUrl) {this.fileUrl = fileUrl;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}

作业发布javaBean创建语句如下:


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

//作业发布
public class Zuoye  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//老师
private Integer teacherId;
//课程
private String kechengName;
//班级
private Integer banjiId;
//作业标题
private String zuoyeName;
//图片
private String pic;
//文件
private String fileUrl;
//内容
private String content;
//发布日期
private Date insertDate;
public Integer getTeacherId() {return teacherId;}
public void setTeacherId(Integer teacherId) {this.teacherId = teacherId;}
public String getKechengName() {return kechengName;}
public void setKechengName(String kechengName) {this.kechengName = kechengName;}
public Integer getBanjiId() {return banjiId;}
public void setBanjiId(Integer banjiId) {this.banjiId = banjiId;}
public String getZuoyeName() {return zuoyeName;}
public void setZuoyeName(String zuoyeName) {this.zuoyeName = zuoyeName;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public String getFileUrl() {return fileUrl;}
public void setFileUrl(String fileUrl) {this.fileUrl = fileUrl;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}

评论