Java试题库设计与实现

Java试题库设计与实现登录注册界面

Java试题库设计与实现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 '班级'
) comment '班级';

建议表创建语句如下:


create table t_contact(
	id int primary key auto_increment comment '主键',
	customerId int comment '用户',
	phone varchar(100) comment '联系方式',
	content varchar(100) comment '内容',
	insertDate datetime comment '日期'
) comment '建议';

客户表创建语句如下:


create table t_customer(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '账号',
	password varchar(100) comment '密码',
	name varchar(100) comment '姓名',
	sex varchar(100) comment '性别',
	address varchar(100) comment '地址',
	mobile varchar(100) comment '手机',
	banjiId int comment '班级'
) comment '客户';

课程表创建语句如下:


create table t_exam(
	id int primary key auto_increment comment '主键',
	examName varchar(100) comment '课程名称',
	showDate varchar(100) comment '日期',
	status varchar(100) comment '状态',
	ny varchar(100) comment '',
	sj int comment '',
	skls varchar(100) comment '授课老师',
	skdx varchar(100) comment '授课对象',
	sksj varchar(100) comment '授课时间',
	skbj varchar(100) comment '授课班级',
	skxq varchar(100) comment '授课学期',
	ppp varchar(100) comment ''
) comment '课程';

答案表创建语句如下:


create table t_examanswer(
	id int primary key auto_increment comment '主键',
	customerId int comment '用户',
	examName varchar(100) comment '试卷名称',
	insertDate datetime comment '日期',
	tm varchar(100) comment '题目',
	da varchar(100) comment '客户答案',
	answer varchar(100) comment '正确答案',
	batchId varchar(100) comment '',
	df varchar(100) comment '',
	v1 int comment '',
	v2 int comment '',
	v3 int comment '',
	isdl varchar(100) comment '',
	skbj varchar(100) comment '',
	skxq varchar(100) comment '',
	types int comment '',
	examId int comment '',
	v1all int comment '',
	v2all int comment '',
	v3all int comment '',
	v4all int comment ''
) comment '答案';

表创建语句如下:


create table t_examas(
	id int primary key auto_increment comment '主键',
	examName varchar(100) comment '课程名称',
	showDate varchar(100) comment '日期',
	status varchar(100) comment '状态',
	ny varchar(100) comment '',
	sj int comment '',
	skls varchar(100) comment '授课老师',
	skdx varchar(100) comment '授课对象',
	sksj varchar(100) comment '授课时间',
	skbj varchar(100) comment '授课班级',
	skxq varchar(100) comment '授课学期',
	v1 int comment '',
	v2 int comment '',
	v3 int comment '',
	v4 int comment ''
) comment '';

试卷题目表创建语句如下:


create table t_examlist(
	id int primary key auto_increment comment '主键',
	examId int comment '试卷',
	examtmId int comment '题目'
) comment '试卷题目';

考试题目表创建语句如下:


create table t_examtm(
	id int primary key auto_increment comment '主键',
	types int comment '类型',
	v1 varchar(100) comment '题目标题',
	v2 varchar(100) comment '选项A',
	v3 varchar(100) comment '选项B',
	v4 varchar(100) comment '选项C',
	v5 varchar(100) comment '选项D',
	v6 varchar(100) comment '答案',
	v7 varchar(100) comment '题目',
	v8 varchar(100) comment '答案',
	v9 varchar(100) comment '题目',
	v10 varchar(100) comment '答案',
	kmId int comment '科目'
) comment '考试题目';

课本知识点表创建语句如下:


create table t_kbzsd(
	id int primary key auto_increment comment '主键',
	title varchar(100) comment '标题',
	content varchar(100) comment '内容'
) comment '课本知识点';

科目表创建语句如下:


create table t_km(
	id int primary key auto_increment comment '主键',
	kmName varchar(100) comment '科目'
) comment '科目';

考试大纲表创建语句如下:


create table t_ksdg(
	id int primary key auto_increment comment '主键',
	title varchar(100) comment '标题',
	content varchar(100) comment '内容'
) comment '考试大纲';

收藏表创建语句如下:


create table t_sc(
	id int primary key auto_increment comment '主键',
	customerId int comment '学生',
	examtmId 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 '姓名',
	phone varchar(100) comment '电话',
	age varchar(100) comment '年龄',
	kmId int comment '科目',
	banjiId int comment '班级'
) comment '老师';

知识点表创建语句如下:


create table t_zsd(
	id int primary key auto_increment comment '主键',
	examId int comment '课程',
	title varchar(100) comment '知识点说明',
	content varchar(100) comment '知识点内容'
) comment '知识点';

Java试题库设计与实现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)
);
--班级字段加注释
comment on column t_banji.id is '主键';
comment on column t_banji.banjiName is '班级';
--班级表加注释
comment on table t_banji is '班级';

建议表创建语句如下:


create table t_contact(
	id integer,
	customerId int,
	phone varchar(100),
	content varchar(100),
	insertDate datetime
);
--建议字段加注释
comment on column t_contact.id is '主键';
comment on column t_contact.customerId is '用户';
comment on column t_contact.phone is '联系方式';
comment on column t_contact.content is '内容';
comment on column t_contact.insertDate is '日期';
--建议表加注释
comment on table t_contact is '建议';

客户表创建语句如下:


create table t_customer(
	id integer,
	username varchar(100),
	password varchar(100),
	name varchar(100),
	sex varchar(100),
	address varchar(100),
	mobile varchar(100),
	banjiId int
);
--客户字段加注释
comment on column t_customer.id is '主键';
comment on column t_customer.username is '账号';
comment on column t_customer.password is '密码';
comment on column t_customer.name is '姓名';
comment on column t_customer.sex is '性别';
comment on column t_customer.address is '地址';
comment on column t_customer.mobile is '手机';
comment on column t_customer.banjiId is '班级';
--客户表加注释
comment on table t_customer is '客户';

课程表创建语句如下:


create table t_exam(
	id integer,
	examName varchar(100),
	showDate varchar(100),
	status varchar(100),
	ny varchar(100),
	sj int,
	skls varchar(100),
	skdx varchar(100),
	sksj varchar(100),
	skbj varchar(100),
	skxq varchar(100),
	ppp varchar(100)
);
--课程字段加注释
comment on column t_exam.id is '主键';
comment on column t_exam.examName is '课程名称';
comment on column t_exam.showDate is '日期';
comment on column t_exam.status is '状态';
comment on column t_exam.ny is '';
comment on column t_exam.sj is '';
comment on column t_exam.skls is '授课老师';
comment on column t_exam.skdx is '授课对象';
comment on column t_exam.sksj is '授课时间';
comment on column t_exam.skbj is '授课班级';
comment on column t_exam.skxq is '授课学期';
comment on column t_exam.ppp is '';
--课程表加注释
comment on table t_exam is '课程';

答案表创建语句如下:


create table t_examanswer(
	id integer,
	customerId int,
	examName varchar(100),
	insertDate datetime,
	tm varchar(100),
	da varchar(100),
	answer varchar(100),
	batchId varchar(100),
	df varchar(100),
	v1 int,
	v2 int,
	v3 int,
	isdl varchar(100),
	skbj varchar(100),
	skxq varchar(100),
	types int,
	examId int,
	v1all int,
	v2all int,
	v3all int,
	v4all int
);
--答案字段加注释
comment on column t_examanswer.id is '主键';
comment on column t_examanswer.customerId is '用户';
comment on column t_examanswer.examName is '试卷名称';
comment on column t_examanswer.insertDate is '日期';
comment on column t_examanswer.tm is '题目';
comment on column t_examanswer.da is '客户答案';
comment on column t_examanswer.answer is '正确答案';
comment on column t_examanswer.batchId is '';
comment on column t_examanswer.df is '';
comment on column t_examanswer.v1 is '';
comment on column t_examanswer.v2 is '';
comment on column t_examanswer.v3 is '';
comment on column t_examanswer.isdl is '';
comment on column t_examanswer.skbj is '';
comment on column t_examanswer.skxq is '';
comment on column t_examanswer.types is '';
comment on column t_examanswer.examId is '';
comment on column t_examanswer.v1all is '';
comment on column t_examanswer.v2all is '';
comment on column t_examanswer.v3all is '';
comment on column t_examanswer.v4all is '';
--答案表加注释
comment on table t_examanswer is '答案';

表创建语句如下:


create table t_examas(
	id integer,
	examName varchar(100),
	showDate varchar(100),
	status varchar(100),
	ny varchar(100),
	sj int,
	skls varchar(100),
	skdx varchar(100),
	sksj varchar(100),
	skbj varchar(100),
	skxq varchar(100),
	v1 int,
	v2 int,
	v3 int,
	v4 int
);
--字段加注释
comment on column t_examas.id is '主键';
comment on column t_examas.examName is '课程名称';
comment on column t_examas.showDate is '日期';
comment on column t_examas.status is '状态';
comment on column t_examas.ny is '';
comment on column t_examas.sj is '';
comment on column t_examas.skls is '授课老师';
comment on column t_examas.skdx is '授课对象';
comment on column t_examas.sksj is '授课时间';
comment on column t_examas.skbj is '授课班级';
comment on column t_examas.skxq is '授课学期';
comment on column t_examas.v1 is '';
comment on column t_examas.v2 is '';
comment on column t_examas.v3 is '';
comment on column t_examas.v4 is '';
--表加注释
comment on table t_examas is '';

试卷题目表创建语句如下:


create table t_examlist(
	id integer,
	examId int,
	examtmId int
);
--试卷题目字段加注释
comment on column t_examlist.id is '主键';
comment on column t_examlist.examId is '试卷';
comment on column t_examlist.examtmId is '题目';
--试卷题目表加注释
comment on table t_examlist is '试卷题目';

考试题目表创建语句如下:


create table t_examtm(
	id integer,
	types int,
	v1 varchar(100),
	v2 varchar(100),
	v3 varchar(100),
	v4 varchar(100),
	v5 varchar(100),
	v6 varchar(100),
	v7 varchar(100),
	v8 varchar(100),
	v9 varchar(100),
	v10 varchar(100),
	kmId int
);
--考试题目字段加注释
comment on column t_examtm.id is '主键';
comment on column t_examtm.types is '类型';
comment on column t_examtm.v1 is '题目标题';
comment on column t_examtm.v2 is '选项A';
comment on column t_examtm.v3 is '选项B';
comment on column t_examtm.v4 is '选项C';
comment on column t_examtm.v5 is '选项D';
comment on column t_examtm.v6 is '答案';
comment on column t_examtm.v7 is '题目';
comment on column t_examtm.v8 is '答案';
comment on column t_examtm.v9 is '题目';
comment on column t_examtm.v10 is '答案';
comment on column t_examtm.kmId is '科目';
--考试题目表加注释
comment on table t_examtm is '考试题目';

课本知识点表创建语句如下:


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

科目表创建语句如下:


create table t_km(
	id integer,
	kmName varchar(100)
);
--科目字段加注释
comment on column t_km.id is '主键';
comment on column t_km.kmName is '科目';
--科目表加注释
comment on table t_km is '科目';

考试大纲表创建语句如下:


create table t_ksdg(
	id integer,
	title varchar(100),
	content varchar(100)
);
--考试大纲字段加注释
comment on column t_ksdg.id is '主键';
comment on column t_ksdg.title is '标题';
comment on column t_ksdg.content is '内容';
--考试大纲表加注释
comment on table t_ksdg is '考试大纲';

收藏表创建语句如下:


create table t_sc(
	id integer,
	customerId int,
	examtmId int
);
--收藏字段加注释
comment on column t_sc.id is '主键';
comment on column t_sc.customerId is '学生';
comment on column t_sc.examtmId is '题目';
--收藏表加注释
comment on table t_sc is '收藏';

老师表创建语句如下:


create table t_teacher(
	id integer,
	username varchar(100),
	password varchar(100),
	teacherName varchar(100),
	phone varchar(100),
	age varchar(100),
	kmId int,
	banjiId int
);
--老师字段加注释
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.phone is '电话';
comment on column t_teacher.age is '年龄';
comment on column t_teacher.kmId is '科目';
comment on column t_teacher.banjiId is '班级';
--老师表加注释
comment on table t_teacher is '老师';

知识点表创建语句如下:


create table t_zsd(
	id integer,
	examId int,
	title varchar(100),
	content varchar(100)
);
--知识点字段加注释
comment on column t_zsd.id is '主键';
comment on column t_zsd.examId is '课程';
comment on column t_zsd.title is '知识点说明';
comment on column t_zsd.content is '知识点内容';
--知识点表加注释
comment on table t_zsd is '知识点';

oracle特有,对应序列如下:


create sequence s_t_banji;
create sequence s_t_contact;
create sequence s_t_customer;
create sequence s_t_exam;
create sequence s_t_examanswer;
create sequence s_t_examas;
create sequence s_t_examlist;
create sequence s_t_examtm;
create sequence s_t_kbzsd;
create sequence s_t_km;
create sequence s_t_ksdg;
create sequence s_t_sc;
create sequence s_t_teacher;
create sequence s_t_zsd;

Java试题库设计与实现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)--班级
);

建议表创建语句如下:


--建议表注释
create table t_contact(
	id int identity(1,1) primary key not null,--主键
	customerId int,--用户
	phone varchar(100),--联系方式
	content varchar(100),--内容
	insertDate datetime--日期
);

客户表创建语句如下:


--客户表注释
create table t_customer(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--账号
	password varchar(100),--密码
	name varchar(100),--姓名
	sex varchar(100),--性别
	address varchar(100),--地址
	mobile varchar(100),--手机
	banjiId int--班级
);

课程表创建语句如下:


--课程表注释
create table t_exam(
	id int identity(1,1) primary key not null,--主键
	examName varchar(100),--课程名称
	showDate varchar(100),--日期
	status varchar(100),--状态
	ny varchar(100),--
	sj int,--
	skls varchar(100),--授课老师
	skdx varchar(100),--授课对象
	sksj varchar(100),--授课时间
	skbj varchar(100),--授课班级
	skxq varchar(100),--授课学期
	ppp varchar(100)--
);

答案表创建语句如下:


--答案表注释
create table t_examanswer(
	id int identity(1,1) primary key not null,--主键
	customerId int,--用户
	examName varchar(100),--试卷名称
	insertDate datetime,--日期
	tm varchar(100),--题目
	da varchar(100),--客户答案
	answer varchar(100),--正确答案
	batchId varchar(100),--
	df varchar(100),--
	v1 int,--
	v2 int,--
	v3 int,--
	isdl varchar(100),--
	skbj varchar(100),--
	skxq varchar(100),--
	types int,--
	examId int,--
	v1all int,--
	v2all int,--
	v3all int,--
	v4all int--
);

表创建语句如下:


--表注释
create table t_examas(
	id int identity(1,1) primary key not null,--主键
	examName varchar(100),--课程名称
	showDate varchar(100),--日期
	status varchar(100),--状态
	ny varchar(100),--
	sj int,--
	skls varchar(100),--授课老师
	skdx varchar(100),--授课对象
	sksj varchar(100),--授课时间
	skbj varchar(100),--授课班级
	skxq varchar(100),--授课学期
	v1 int,--
	v2 int,--
	v3 int,--
	v4 int--
);

试卷题目表创建语句如下:


--试卷题目表注释
create table t_examlist(
	id int identity(1,1) primary key not null,--主键
	examId int,--试卷
	examtmId int--题目
);

考试题目表创建语句如下:


--考试题目表注释
create table t_examtm(
	id int identity(1,1) primary key not null,--主键
	types int,--类型
	v1 varchar(100),--题目标题
	v2 varchar(100),--选项A
	v3 varchar(100),--选项B
	v4 varchar(100),--选项C
	v5 varchar(100),--选项D
	v6 varchar(100),--答案
	v7 varchar(100),--题目
	v8 varchar(100),--答案
	v9 varchar(100),--题目
	v10 varchar(100),--答案
	kmId int--科目
);

课本知识点表创建语句如下:


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

科目表创建语句如下:


--科目表注释
create table t_km(
	id int identity(1,1) primary key not null,--主键
	kmName varchar(100)--科目
);

考试大纲表创建语句如下:


--考试大纲表注释
create table t_ksdg(
	id int identity(1,1) primary key not null,--主键
	title varchar(100),--标题
	content varchar(100)--内容
);

收藏表创建语句如下:


--收藏表注释
create table t_sc(
	id int identity(1,1) primary key not null,--主键
	customerId int,--学生
	examtmId int--题目
);

老师表创建语句如下:


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

知识点表创建语句如下:


--知识点表注释
create table t_zsd(
	id int identity(1,1) primary key not null,--主键
	examId int,--课程
	title varchar(100),--知识点说明
	content varchar(100)--知识点内容
);

Java试题库设计与实现登录后主页

Java试题库设计与实现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;
public String getBanjiName() {return banjiName;}
public void setBanjiName(String banjiName) {this.banjiName = banjiName;}
}

建议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_contact")
public class Contact {
//主键
@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 customerId;
//联系方式
private String phone;
//内容
private String content;
//日期
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
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;}
}

客户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_customer")
public class Customer {
//主键
@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 name;
//性别
private String sex;
//地址
private String address;
//手机
private String mobile;
//班级
private Integer banjiId;
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 getName() {return name;}
public void setName(String name) {this.name = name;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
public String getMobile() {return mobile;}
public void setMobile(String mobile) {this.mobile = mobile;}
public Integer getBanjiId() {return banjiId;}
public void setBanjiId(Integer banjiId) {this.banjiId = banjiId;}
}

课程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_exam")
public class Exam {
//主键
@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 examName;
//日期
private String showDate;
//状态
private String status;
//
private String ny;
//
private Integer sj;
//授课老师
private String skls;
//授课对象
private String skdx;
//授课时间
private String sksj;
//授课班级
private String skbj;
//授课学期
private String skxq;
//
private String ppp;
public String getExamName() {return examName;}
public void setExamName(String examName) {this.examName = examName;}
public String getShowDate() {return showDate;}
public void setShowDate(String showDate) {this.showDate = showDate;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
public String getNy() {return ny;}
public void setNy(String ny) {this.ny = ny;}
public Integer getSj() {return sj;}
public void setSj(Integer sj) {this.sj = sj;}
public String getSkls() {return skls;}
public void setSkls(String skls) {this.skls = skls;}
public String getSkdx() {return skdx;}
public void setSkdx(String skdx) {this.skdx = skdx;}
public String getSksj() {return sksj;}
public void setSksj(String sksj) {this.sksj = sksj;}
public String getSkbj() {return skbj;}
public void setSkbj(String skbj) {this.skbj = skbj;}
public String getSkxq() {return skxq;}
public void setSkxq(String skxq) {this.skxq = skxq;}
public String getPpp() {return ppp;}
public void setPpp(String ppp) {this.ppp = ppp;}
}

答案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_examanswer")
public class Examanswer {
//主键
@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 customerId;
//试卷名称
private String examName;
//日期
private Date insertDate;
//题目
private String tm;
//客户答案
private String da;
//正确答案
private String answer;
//
private String batchId;
//
private String df;
//
private Integer v1;
//
private Integer v2;
//
private Integer v3;
//
private String isdl;
//
private String skbj;
//
private String skxq;
//
private Integer types;
//
private Integer examId;
//
private Integer v1all;
//
private Integer v2all;
//
private Integer v3all;
//
private Integer v4all;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getExamName() {return examName;}
public void setExamName(String examName) {this.examName = examName;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getTm() {return tm;}
public void setTm(String tm) {this.tm = tm;}
public String getDa() {return da;}
public void setDa(String da) {this.da = da;}
public String getAnswer() {return answer;}
public void setAnswer(String answer) {this.answer = answer;}
public String getBatchId() {return batchId;}
public void setBatchId(String batchId) {this.batchId = batchId;}
public String getDf() {return df;}
public void setDf(String df) {this.df = df;}
public Integer getV1() {return v1;}
public void setV1(Integer v1) {this.v1 = v1;}
public Integer getV2() {return v2;}
public void setV2(Integer v2) {this.v2 = v2;}
public Integer getV3() {return v3;}
public void setV3(Integer v3) {this.v3 = v3;}
public String getIsdl() {return isdl;}
public void setIsdl(String isdl) {this.isdl = isdl;}
public String getSkbj() {return skbj;}
public void setSkbj(String skbj) {this.skbj = skbj;}
public String getSkxq() {return skxq;}
public void setSkxq(String skxq) {this.skxq = skxq;}
public Integer getTypes() {return types;}
public void setTypes(Integer types) {this.types = types;}
public Integer getExamId() {return examId;}
public void setExamId(Integer examId) {this.examId = examId;}
public Integer getV1all() {return v1all;}
public void setV1all(Integer v1all) {this.v1all = v1all;}
public Integer getV2all() {return v2all;}
public void setV2all(Integer v2all) {this.v2all = v2all;}
public Integer getV3all() {return v3all;}
public void setV3all(Integer v3all) {this.v3all = v3all;}
public Integer getV4all() {return v4all;}
public void setV4all(Integer v4all) {this.v4all = v4all;}
}

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_examas")
public class Examas {
//主键
@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 examName;
//日期
private String showDate;
//状态
private String status;
//
private String ny;
//
private Integer sj;
//授课老师
private String skls;
//授课对象
private String skdx;
//授课时间
private String sksj;
//授课班级
private String skbj;
//授课学期
private String skxq;
//
private Integer v1;
//
private Integer v2;
//
private Integer v3;
//
private Integer v4;
public String getExamName() {return examName;}
public void setExamName(String examName) {this.examName = examName;}
public String getShowDate() {return showDate;}
public void setShowDate(String showDate) {this.showDate = showDate;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
public String getNy() {return ny;}
public void setNy(String ny) {this.ny = ny;}
public Integer getSj() {return sj;}
public void setSj(Integer sj) {this.sj = sj;}
public String getSkls() {return skls;}
public void setSkls(String skls) {this.skls = skls;}
public String getSkdx() {return skdx;}
public void setSkdx(String skdx) {this.skdx = skdx;}
public String getSksj() {return sksj;}
public void setSksj(String sksj) {this.sksj = sksj;}
public String getSkbj() {return skbj;}
public void setSkbj(String skbj) {this.skbj = skbj;}
public String getSkxq() {return skxq;}
public void setSkxq(String skxq) {this.skxq = skxq;}
public Integer getV1() {return v1;}
public void setV1(Integer v1) {this.v1 = v1;}
public Integer getV2() {return v2;}
public void setV2(Integer v2) {this.v2 = v2;}
public Integer getV3() {return v3;}
public void setV3(Integer v3) {this.v3 = v3;}
public Integer getV4() {return v4;}
public void setV4(Integer v4) {this.v4 = v4;}
}

试卷题目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_examlist")
public class Examlist {
//主键
@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 examId;
//题目
private Integer examtmId;
public Integer getExamId() {return examId;}
public void setExamId(Integer examId) {this.examId = examId;}
public Integer getExamtmId() {return examtmId;}
public void setExamtmId(Integer examtmId) {this.examtmId = examtmId;}
}

考试题目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_examtm")
public class Examtm {
//主键
@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 types;
//题目标题
private String v1;
//选项A
private String v2;
//选项B
private String v3;
//选项C
private String v4;
//选项D
private String v5;
//答案
private String v6;
//题目
private String v7;
//答案
private String v8;
//题目
private String v9;
//答案
private String v10;
//科目
private Integer kmId;
public Integer getTypes() {return types;}
public void setTypes(Integer types) {this.types = types;}
public String getV1() {return v1;}
public void setV1(String v1) {this.v1 = v1;}
public String getV2() {return v2;}
public void setV2(String v2) {this.v2 = v2;}
public String getV3() {return v3;}
public void setV3(String v3) {this.v3 = v3;}
public String getV4() {return v4;}
public void setV4(String v4) {this.v4 = v4;}
public String getV5() {return v5;}
public void setV5(String v5) {this.v5 = v5;}
public String getV6() {return v6;}
public void setV6(String v6) {this.v6 = v6;}
public String getV7() {return v7;}
public void setV7(String v7) {this.v7 = v7;}
public String getV8() {return v8;}
public void setV8(String v8) {this.v8 = v8;}
public String getV9() {return v9;}
public void setV9(String v9) {this.v9 = v9;}
public String getV10() {return v10;}
public void setV10(String v10) {this.v10 = v10;}
public Integer getKmId() {return kmId;}
public void setKmId(Integer kmId) {this.kmId = kmId;}
}

课本知识点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_kbzsd")
public class Kbzsd {
//主键
@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_km")
public class Km {
//主键
@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 kmName;
public String getKmName() {return kmName;}
public void setKmName(String kmName) {this.kmName = kmName;}
}

考试大纲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_ksdg")
public class Ksdg {
//主键
@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_sc")
public class Sc {
//主键
@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 customerId;
//题目
private Integer examtmId;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getExamtmId() {return examtmId;}
public void setExamtmId(Integer examtmId) {this.examtmId = examtmId;}
}

老师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 phone;
//年龄
private String age;
//科目
private Integer kmId;
//班级
private Integer banjiId;
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 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 getKmId() {return kmId;}
public void setKmId(Integer kmId) {this.kmId = kmId;}
public Integer getBanjiId() {return banjiId;}
public void setBanjiId(Integer banjiId) {this.banjiId = banjiId;}
}

知识点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_zsd")
public class Zsd {
//主键
@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 examId;
//知识点说明
private String title;
//知识点内容
private String content;
public Integer getExamId() {return examId;}
public void setExamId(Integer examId) {this.examId = examId;}
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;}
}

Java试题库设计与实现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;
public String getBanjiName() {return banjiName;}
public void setBanjiName(String banjiName) {this.banjiName = banjiName;}
}

建议javaBean创建语句如下:


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

//建议
public class Contact  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//用户
private Integer customerId;
//联系方式
private String phone;
//内容
private String content;
//日期
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
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;}
}

客户javaBean创建语句如下:


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

//客户
public class Customer  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 name;
//性别
private String sex;
//地址
private String address;
//手机
private String mobile;
//班级
private Integer banjiId;
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 getName() {return name;}
public void setName(String name) {this.name = name;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
public String getMobile() {return mobile;}
public void setMobile(String mobile) {this.mobile = mobile;}
public Integer getBanjiId() {return banjiId;}
public void setBanjiId(Integer banjiId) {this.banjiId = banjiId;}
}

课程javaBean创建语句如下:


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

//课程
public class Exam  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//课程名称
private String examName;
//日期
private String showDate;
//状态
private String status;
//
private String ny;
//
private Integer sj;
//授课老师
private String skls;
//授课对象
private String skdx;
//授课时间
private String sksj;
//授课班级
private String skbj;
//授课学期
private String skxq;
//
private String ppp;
public String getExamName() {return examName;}
public void setExamName(String examName) {this.examName = examName;}
public String getShowDate() {return showDate;}
public void setShowDate(String showDate) {this.showDate = showDate;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
public String getNy() {return ny;}
public void setNy(String ny) {this.ny = ny;}
public Integer getSj() {return sj;}
public void setSj(Integer sj) {this.sj = sj;}
public String getSkls() {return skls;}
public void setSkls(String skls) {this.skls = skls;}
public String getSkdx() {return skdx;}
public void setSkdx(String skdx) {this.skdx = skdx;}
public String getSksj() {return sksj;}
public void setSksj(String sksj) {this.sksj = sksj;}
public String getSkbj() {return skbj;}
public void setSkbj(String skbj) {this.skbj = skbj;}
public String getSkxq() {return skxq;}
public void setSkxq(String skxq) {this.skxq = skxq;}
public String getPpp() {return ppp;}
public void setPpp(String ppp) {this.ppp = ppp;}
}

答案javaBean创建语句如下:


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

//答案
public class Examanswer  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//用户
private Integer customerId;
//试卷名称
private String examName;
//日期
private Date insertDate;
//题目
private String tm;
//客户答案
private String da;
//正确答案
private String answer;
//
private String batchId;
//
private String df;
//
private Integer v1;
//
private Integer v2;
//
private Integer v3;
//
private String isdl;
//
private String skbj;
//
private String skxq;
//
private Integer types;
//
private Integer examId;
//
private Integer v1all;
//
private Integer v2all;
//
private Integer v3all;
//
private Integer v4all;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getExamName() {return examName;}
public void setExamName(String examName) {this.examName = examName;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getTm() {return tm;}
public void setTm(String tm) {this.tm = tm;}
public String getDa() {return da;}
public void setDa(String da) {this.da = da;}
public String getAnswer() {return answer;}
public void setAnswer(String answer) {this.answer = answer;}
public String getBatchId() {return batchId;}
public void setBatchId(String batchId) {this.batchId = batchId;}
public String getDf() {return df;}
public void setDf(String df) {this.df = df;}
public Integer getV1() {return v1;}
public void setV1(Integer v1) {this.v1 = v1;}
public Integer getV2() {return v2;}
public void setV2(Integer v2) {this.v2 = v2;}
public Integer getV3() {return v3;}
public void setV3(Integer v3) {this.v3 = v3;}
public String getIsdl() {return isdl;}
public void setIsdl(String isdl) {this.isdl = isdl;}
public String getSkbj() {return skbj;}
public void setSkbj(String skbj) {this.skbj = skbj;}
public String getSkxq() {return skxq;}
public void setSkxq(String skxq) {this.skxq = skxq;}
public Integer getTypes() {return types;}
public void setTypes(Integer types) {this.types = types;}
public Integer getExamId() {return examId;}
public void setExamId(Integer examId) {this.examId = examId;}
public Integer getV1all() {return v1all;}
public void setV1all(Integer v1all) {this.v1all = v1all;}
public Integer getV2all() {return v2all;}
public void setV2all(Integer v2all) {this.v2all = v2all;}
public Integer getV3all() {return v3all;}
public void setV3all(Integer v3all) {this.v3all = v3all;}
public Integer getV4all() {return v4all;}
public void setV4all(Integer v4all) {this.v4all = v4all;}
}

javaBean创建语句如下:


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

//
public class Examas  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//课程名称
private String examName;
//日期
private String showDate;
//状态
private String status;
//
private String ny;
//
private Integer sj;
//授课老师
private String skls;
//授课对象
private String skdx;
//授课时间
private String sksj;
//授课班级
private String skbj;
//授课学期
private String skxq;
//
private Integer v1;
//
private Integer v2;
//
private Integer v3;
//
private Integer v4;
public String getExamName() {return examName;}
public void setExamName(String examName) {this.examName = examName;}
public String getShowDate() {return showDate;}
public void setShowDate(String showDate) {this.showDate = showDate;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
public String getNy() {return ny;}
public void setNy(String ny) {this.ny = ny;}
public Integer getSj() {return sj;}
public void setSj(Integer sj) {this.sj = sj;}
public String getSkls() {return skls;}
public void setSkls(String skls) {this.skls = skls;}
public String getSkdx() {return skdx;}
public void setSkdx(String skdx) {this.skdx = skdx;}
public String getSksj() {return sksj;}
public void setSksj(String sksj) {this.sksj = sksj;}
public String getSkbj() {return skbj;}
public void setSkbj(String skbj) {this.skbj = skbj;}
public String getSkxq() {return skxq;}
public void setSkxq(String skxq) {this.skxq = skxq;}
public Integer getV1() {return v1;}
public void setV1(Integer v1) {this.v1 = v1;}
public Integer getV2() {return v2;}
public void setV2(Integer v2) {this.v2 = v2;}
public Integer getV3() {return v3;}
public void setV3(Integer v3) {this.v3 = v3;}
public Integer getV4() {return v4;}
public void setV4(Integer v4) {this.v4 = v4;}
}

试卷题目javaBean创建语句如下:


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

//试卷题目
public class Examlist  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//试卷
private Integer examId;
//题目
private Integer examtmId;
public Integer getExamId() {return examId;}
public void setExamId(Integer examId) {this.examId = examId;}
public Integer getExamtmId() {return examtmId;}
public void setExamtmId(Integer examtmId) {this.examtmId = examtmId;}
}

考试题目javaBean创建语句如下:


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

//考试题目
public class Examtm  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//类型
private Integer types;
//题目标题
private String v1;
//选项A
private String v2;
//选项B
private String v3;
//选项C
private String v4;
//选项D
private String v5;
//答案
private String v6;
//题目
private String v7;
//答案
private String v8;
//题目
private String v9;
//答案
private String v10;
//科目
private Integer kmId;
public Integer getTypes() {return types;}
public void setTypes(Integer types) {this.types = types;}
public String getV1() {return v1;}
public void setV1(String v1) {this.v1 = v1;}
public String getV2() {return v2;}
public void setV2(String v2) {this.v2 = v2;}
public String getV3() {return v3;}
public void setV3(String v3) {this.v3 = v3;}
public String getV4() {return v4;}
public void setV4(String v4) {this.v4 = v4;}
public String getV5() {return v5;}
public void setV5(String v5) {this.v5 = v5;}
public String getV6() {return v6;}
public void setV6(String v6) {this.v6 = v6;}
public String getV7() {return v7;}
public void setV7(String v7) {this.v7 = v7;}
public String getV8() {return v8;}
public void setV8(String v8) {this.v8 = v8;}
public String getV9() {return v9;}
public void setV9(String v9) {this.v9 = v9;}
public String getV10() {return v10;}
public void setV10(String v10) {this.v10 = v10;}
public Integer getKmId() {return kmId;}
public void setKmId(Integer kmId) {this.kmId = kmId;}
}

课本知识点javaBean创建语句如下:


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

//课本知识点
public class Kbzsd  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 Km  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//科目
private String kmName;
public String getKmName() {return kmName;}
public void setKmName(String kmName) {this.kmName = kmName;}
}

考试大纲javaBean创建语句如下:


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

//考试大纲
public class Ksdg  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 Sc  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//学生
private Integer customerId;
//题目
private Integer examtmId;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getExamtmId() {return examtmId;}
public void setExamtmId(Integer examtmId) {this.examtmId = examtmId;}
}

老师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 phone;
//年龄
private String age;
//科目
private Integer kmId;
//班级
private Integer banjiId;
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 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 getKmId() {return kmId;}
public void setKmId(Integer kmId) {this.kmId = kmId;}
public Integer getBanjiId() {return banjiId;}
public void setBanjiId(Integer banjiId) {this.banjiId = banjiId;}
}

知识点javaBean创建语句如下:


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

//知识点
public class Zsd  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//课程
private Integer examId;
//知识点说明
private String title;
//知识点内容
private String content;
public Integer getExamId() {return examId;}
public void setExamId(Integer examId) {this.examId = examId;}
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;}
}

评论