基于JSP校园图书管管理系统

基于JSP校园图书管管理系统登录注册界面

基于JSP校园图书管管理系统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_book(
	id int primary key auto_increment comment '主键',
	bh varchar(100) comment '编码',
	bookName varchar(100) comment '书名',
	ms varchar(100) comment '内容简介',
	gmDate datetime comment '购买日期',
	jg varchar(100) comment '价格',
	pic varchar(100) comment '图片',
	zz varchar(100) comment '作者',
	typesId int comment '分类',
	cbs varchar(100) comment '出版社',
	bc varchar(100) comment '版次',
	kc int comment '库存',
	status varchar(100) comment '状态'
) comment '图书';

评论表创建语句如下:


create table t_bookpl(
	id int primary key auto_increment comment '主键',
	studentId int comment '学生',
	bookId int comment '图书',
	content varchar(100) comment '评论',
	insertDate datetime comment '日期'
) comment '评论';

借阅证表创建语句如下:


create table t_jyz(
	id int primary key auto_increment comment '主键',
	studentId int comment '学生',
	jyzName varchar(100) comment '借阅证编号',
	pic varchar(100) comment '图片',
	status varchar(100) comment '状态'
) comment '借阅证';

借阅证挂失表创建语句如下:


create table t_jyzgs(
	id int primary key auto_increment comment '主键',
	jyzId int comment '借阅证',
	insertDate datetime comment '挂失日期',
	remark varchar(100) comment '备注',
	status varchar(100) comment '状态',
	studentId int comment ''
) comment '借阅证挂失';

图书借阅表创建语句如下:


create table t_order(
	id int primary key auto_increment comment '主键',
	studentId int comment '学生',
	bookId int comment '图书',
	insertDate datetime comment '借阅日期',
	needbackDate datetime comment '需要归还日期',
	backDate datetime comment '实际归还日期',
	remark varchar(100) comment '备注',
	status 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 '姓名',
	age varchar(100) comment '年龄',
	sex varchar(100) comment '性别',
	phone varchar(100) comment '电话'
) comment '普通管理员';

收藏表创建语句如下:


create table t_sc(
	id int primary key auto_increment comment '主键',
	studentId int comment '学生',
	bookId int comment '图书',
	insertDate datetime 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 '姓名',
	age varchar(100) comment '年龄',
	sex varchar(100) comment '性别',
	phone varchar(100) comment '电话',
	qq varchar(100) comment 'QQ',
	email varchar(100) comment '邮箱',
	pic varchar(100) comment '头像',
	sfz varchar(100) comment '身份证'
) comment '学生';

图书分类表创建语句如下:


create table t_types(
	id int primary key auto_increment comment '主键',
	typesName varchar(100) comment '类型名称'
) comment '图书分类';

基于JSP校园图书管管理系统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_book(
	id integer,
	bh varchar(100),
	bookName varchar(100),
	ms varchar(100),
	gmDate datetime,
	jg varchar(100),
	pic varchar(100),
	zz varchar(100),
	typesId int,
	cbs varchar(100),
	bc varchar(100),
	kc int,
	status varchar(100)
);
--图书字段加注释
comment on column t_book.id is '主键';
comment on column t_book.bh is '编码';
comment on column t_book.bookName is '书名';
comment on column t_book.ms is '内容简介';
comment on column t_book.gmDate is '购买日期';
comment on column t_book.jg is '价格';
comment on column t_book.pic is '图片';
comment on column t_book.zz is '作者';
comment on column t_book.typesId is '分类';
comment on column t_book.cbs is '出版社';
comment on column t_book.bc is '版次';
comment on column t_book.kc is '库存';
comment on column t_book.status is '状态';
--图书表加注释
comment on table t_book is '图书';

评论表创建语句如下:


create table t_bookpl(
	id integer,
	studentId int,
	bookId int,
	content varchar(100),
	insertDate datetime
);
--评论字段加注释
comment on column t_bookpl.id is '主键';
comment on column t_bookpl.studentId is '学生';
comment on column t_bookpl.bookId is '图书';
comment on column t_bookpl.content is '评论';
comment on column t_bookpl.insertDate is '日期';
--评论表加注释
comment on table t_bookpl is '评论';

借阅证表创建语句如下:


create table t_jyz(
	id integer,
	studentId int,
	jyzName varchar(100),
	pic varchar(100),
	status varchar(100)
);
--借阅证字段加注释
comment on column t_jyz.id is '主键';
comment on column t_jyz.studentId is '学生';
comment on column t_jyz.jyzName is '借阅证编号';
comment on column t_jyz.pic is '图片';
comment on column t_jyz.status is '状态';
--借阅证表加注释
comment on table t_jyz is '借阅证';

借阅证挂失表创建语句如下:


create table t_jyzgs(
	id integer,
	jyzId int,
	insertDate datetime,
	remark varchar(100),
	status varchar(100),
	studentId int
);
--借阅证挂失字段加注释
comment on column t_jyzgs.id is '主键';
comment on column t_jyzgs.jyzId is '借阅证';
comment on column t_jyzgs.insertDate is '挂失日期';
comment on column t_jyzgs.remark is '备注';
comment on column t_jyzgs.status is '状态';
comment on column t_jyzgs.studentId is '';
--借阅证挂失表加注释
comment on table t_jyzgs is '借阅证挂失';

图书借阅表创建语句如下:


create table t_order(
	id integer,
	studentId int,
	bookId int,
	insertDate datetime,
	needbackDate datetime,
	backDate datetime,
	remark varchar(100),
	status varchar(100)
);
--图书借阅字段加注释
comment on column t_order.id is '主键';
comment on column t_order.studentId is '学生';
comment on column t_order.bookId is '图书';
comment on column t_order.insertDate is '借阅日期';
comment on column t_order.needbackDate is '需要归还日期';
comment on column t_order.backDate is '实际归还日期';
comment on column t_order.remark is '备注';
comment on column t_order.status is '状态';
--图书借阅表加注释
comment on table t_order is '图书借阅';

普通管理员表创建语句如下:


create table t_ptadmin(
	id integer,
	username varchar(100),
	password varchar(100),
	ptadminName varchar(100),
	age varchar(100),
	sex varchar(100),
	phone 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.age is '年龄';
comment on column t_ptadmin.sex is '性别';
comment on column t_ptadmin.phone is '电话';
--普通管理员表加注释
comment on table t_ptadmin is '普通管理员';

收藏表创建语句如下:


create table t_sc(
	id integer,
	studentId int,
	bookId int,
	insertDate datetime
);
--收藏字段加注释
comment on column t_sc.id is '主键';
comment on column t_sc.studentId is '学生';
comment on column t_sc.bookId is '图书';
comment on column t_sc.insertDate is '日期';
--收藏表加注释
comment on table t_sc is '收藏';

学生表创建语句如下:


create table t_student(
	id integer,
	username varchar(100),
	password varchar(100),
	studentName varchar(100),
	age varchar(100),
	sex varchar(100),
	phone varchar(100),
	qq varchar(100),
	email varchar(100),
	pic varchar(100),
	sfz 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.studentName is '姓名';
comment on column t_student.age is '年龄';
comment on column t_student.sex is '性别';
comment on column t_student.phone is '电话';
comment on column t_student.qq is 'QQ';
comment on column t_student.email is '邮箱';
comment on column t_student.pic is '头像';
comment on column t_student.sfz is '身份证';
--学生表加注释
comment on table t_student is '学生';

图书分类表创建语句如下:


create table t_types(
	id integer,
	typesName varchar(100)
);
--图书分类字段加注释
comment on column t_types.id is '主键';
comment on column t_types.typesName is '类型名称';
--图书分类表加注释
comment on table t_types is '图书分类';

oracle特有,对应序列如下:


create sequence s_t_book;
create sequence s_t_bookpl;
create sequence s_t_jyz;
create sequence s_t_jyzgs;
create sequence s_t_order;
create sequence s_t_ptadmin;
create sequence s_t_sc;
create sequence s_t_student;
create sequence s_t_types;

基于JSP校园图书管管理系统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_book(
	id int identity(1,1) primary key not null,--主键
	bh varchar(100),--编码
	bookName varchar(100),--书名
	ms varchar(100),--内容简介
	gmDate datetime,--购买日期
	jg varchar(100),--价格
	pic varchar(100),--图片
	zz varchar(100),--作者
	typesId int,--分类
	cbs varchar(100),--出版社
	bc varchar(100),--版次
	kc int,--库存
	status varchar(100)--状态
);

评论表创建语句如下:


--评论表注释
create table t_bookpl(
	id int identity(1,1) primary key not null,--主键
	studentId int,--学生
	bookId int,--图书
	content varchar(100),--评论
	insertDate datetime--日期
);

借阅证表创建语句如下:


--借阅证表注释
create table t_jyz(
	id int identity(1,1) primary key not null,--主键
	studentId int,--学生
	jyzName varchar(100),--借阅证编号
	pic varchar(100),--图片
	status varchar(100)--状态
);

借阅证挂失表创建语句如下:


--借阅证挂失表注释
create table t_jyzgs(
	id int identity(1,1) primary key not null,--主键
	jyzId int,--借阅证
	insertDate datetime,--挂失日期
	remark varchar(100),--备注
	status varchar(100),--状态
	studentId int--
);

图书借阅表创建语句如下:


--图书借阅表注释
create table t_order(
	id int identity(1,1) primary key not null,--主键
	studentId int,--学生
	bookId int,--图书
	insertDate datetime,--借阅日期
	needbackDate datetime,--需要归还日期
	backDate datetime,--实际归还日期
	remark varchar(100),--备注
	status varchar(100)--状态
);

普通管理员表创建语句如下:


--普通管理员表注释
create table t_ptadmin(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--账号
	password varchar(100),--密码 
	ptadminName varchar(100),--姓名
	age varchar(100),--年龄
	sex varchar(100),--性别
	phone varchar(100)--电话
);

收藏表创建语句如下:


--收藏表注释
create table t_sc(
	id int identity(1,1) primary key not null,--主键
	studentId int,--学生
	bookId int,--图书
	insertDate datetime--日期
);

学生表创建语句如下:


--学生表注释
create table t_student(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--账号
	password varchar(100),--密码 
	studentName varchar(100),--姓名
	age varchar(100),--年龄
	sex varchar(100),--性别
	phone varchar(100),--电话
	qq varchar(100),--QQ
	email varchar(100),--邮箱
	pic varchar(100),--头像
	sfz varchar(100)--身份证
);

图书分类表创建语句如下:


--图书分类表注释
create table t_types(
	id int identity(1,1) primary key not null,--主键
	typesName varchar(100)--类型名称
);

基于JSP校园图书管管理系统登录后主页

基于JSP校园图书管管理系统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_book")
public class Book {
//主键
@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 bh;
//书名
private String bookName;
//内容简介
private String ms;
//购买日期
private Date gmDate;
//价格
private String jg;
//图片
private String pic;
//作者
private String zz;
//分类
private Integer typesId;
//出版社
private String cbs;
//版次
private String bc;
//库存
private Integer kc;
//状态
private String status;
public String getBh() {return bh;}
public void setBh(String bh) {this.bh = bh;}
public String getBookName() {return bookName;}
public void setBookName(String bookName) {this.bookName = bookName;}
public String getMs() {return ms;}
public void setMs(String ms) {this.ms = ms;}
public Date getGmDate() {return gmDate;}
public void setGmDate(Date gmDate) {this.gmDate = gmDate;}
public String getJg() {return jg;}
public void setJg(String jg) {this.jg = jg;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public String getZz() {return zz;}
public void setZz(String zz) {this.zz = zz;}
public Integer getTypesId() {return typesId;}
public void setTypesId(Integer typesId) {this.typesId = typesId;}
public String getCbs() {return cbs;}
public void setCbs(String cbs) {this.cbs = cbs;}
public String getBc() {return bc;}
public void setBc(String bc) {this.bc = bc;}
public Integer getKc() {return kc;}
public void setKc(Integer kc) {this.kc = kc;}
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_bookpl")
public class Bookpl {
//主键
@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 Integer bookId;
//评论
private String content;
//日期
private Date insertDate;
public Integer getStudentId() {return studentId;}
public void setStudentId(Integer studentId) {this.studentId = studentId;}
public Integer getBookId() {return bookId;}
public void setBookId(Integer bookId) {this.bookId = bookId;}
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_jyz")
public class Jyz {
//主键
@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 jyzName;
//图片
private String pic;
//状态
private String status;
public Integer getStudentId() {return studentId;}
public void setStudentId(Integer studentId) {this.studentId = studentId;}
public String getJyzName() {return jyzName;}
public void setJyzName(String jyzName) {this.jyzName = jyzName;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
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_jyzgs")
public class Jyzgs {
//主键
@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 jyzId;
//挂失日期
private Date insertDate;
//备注
private String remark;
//状态
private String status;
//
private Integer studentId;
public Integer getJyzId() {return jyzId;}
public void setJyzId(Integer jyzId) {this.jyzId = jyzId;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
public Integer getStudentId() {return studentId;}
public void setStudentId(Integer studentId) {this.studentId = studentId;}
}

图书借阅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_order")
public class Order {
//主键
@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 Integer bookId;
//借阅日期
private Date insertDate;
//需要归还日期
private Date needbackDate;
//实际归还日期
private Date backDate;
//备注
private String remark;
//状态
private String status;
public Integer getStudentId() {return studentId;}
public void setStudentId(Integer studentId) {this.studentId = studentId;}
public Integer getBookId() {return bookId;}
public void setBookId(Integer bookId) {this.bookId = bookId;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public Date getNeedbackDate() {return needbackDate;}
public void setNeedbackDate(Date needbackDate) {this.needbackDate = needbackDate;}
public Date getBackDate() {return backDate;}
public void setBackDate(Date backDate) {this.backDate = backDate;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
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_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 age;
//性别
private String sex;
//电话
private String phone;
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 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 getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
}

收藏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 studentId;
//图书
private Integer bookId;
//日期
private Date insertDate;
public Integer getStudentId() {return studentId;}
public void setStudentId(Integer studentId) {this.studentId = studentId;}
public Integer getBookId() {return bookId;}
public void setBookId(Integer bookId) {this.bookId = bookId;}
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_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 age;
//性别
private String sex;
//电话
private String phone;
//QQ
private String qq;
//邮箱
private String email;
//头像
private String pic;
//身份证
private String sfz;
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 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 getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getQq() {return qq;}
public void setQq(String qq) {this.qq = qq;}
public String getEmail() {return email;}
public void setEmail(String email) {this.email = email;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public String getSfz() {return sfz;}
public void setSfz(String sfz) {this.sfz = sfz;}
}

图书分类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_types")
public class Types {
//主键
@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 typesName;
public String getTypesName() {return typesName;}
public void setTypesName(String typesName) {this.typesName = typesName;}
}

基于JSP校园图书管管理系统spring+springMVC+mybatis框架对象(javaBean,pojo)设计:

图书javaBean创建语句如下:


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

//图书
public class Book  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//编码
private String bh;
//书名
private String bookName;
//内容简介
private String ms;
//购买日期
private Date gmDate;
//价格
private String jg;
//图片
private String pic;
//作者
private String zz;
//分类
private Integer typesId;
//出版社
private String cbs;
//版次
private String bc;
//库存
private Integer kc;
//状态
private String status;
public String getBh() {return bh;}
public void setBh(String bh) {this.bh = bh;}
public String getBookName() {return bookName;}
public void setBookName(String bookName) {this.bookName = bookName;}
public String getMs() {return ms;}
public void setMs(String ms) {this.ms = ms;}
public Date getGmDate() {return gmDate;}
public void setGmDate(Date gmDate) {this.gmDate = gmDate;}
public String getJg() {return jg;}
public void setJg(String jg) {this.jg = jg;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public String getZz() {return zz;}
public void setZz(String zz) {this.zz = zz;}
public Integer getTypesId() {return typesId;}
public void setTypesId(Integer typesId) {this.typesId = typesId;}
public String getCbs() {return cbs;}
public void setCbs(String cbs) {this.cbs = cbs;}
public String getBc() {return bc;}
public void setBc(String bc) {this.bc = bc;}
public Integer getKc() {return kc;}
public void setKc(Integer kc) {this.kc = kc;}
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 Bookpl  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//学生
private Integer studentId;
//图书
private Integer bookId;
//评论
private String content;
//日期
private Date insertDate;
public Integer getStudentId() {return studentId;}
public void setStudentId(Integer studentId) {this.studentId = studentId;}
public Integer getBookId() {return bookId;}
public void setBookId(Integer bookId) {this.bookId = bookId;}
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 Jyz  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//学生
private Integer studentId;
//借阅证编号
private String jyzName;
//图片
private String pic;
//状态
private String status;
public Integer getStudentId() {return studentId;}
public void setStudentId(Integer studentId) {this.studentId = studentId;}
public String getJyzName() {return jyzName;}
public void setJyzName(String jyzName) {this.jyzName = jyzName;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
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 Jyzgs  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//借阅证
private Integer jyzId;
//挂失日期
private Date insertDate;
//备注
private String remark;
//状态
private String status;
//
private Integer studentId;
public Integer getJyzId() {return jyzId;}
public void setJyzId(Integer jyzId) {this.jyzId = jyzId;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
public Integer getStudentId() {return studentId;}
public void setStudentId(Integer studentId) {this.studentId = studentId;}
}

图书借阅javaBean创建语句如下:


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

//图书借阅
public class Order  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//学生
private Integer studentId;
//图书
private Integer bookId;
//借阅日期
private Date insertDate;
//需要归还日期
private Date needbackDate;
//实际归还日期
private Date backDate;
//备注
private String remark;
//状态
private String status;
public Integer getStudentId() {return studentId;}
public void setStudentId(Integer studentId) {this.studentId = studentId;}
public Integer getBookId() {return bookId;}
public void setBookId(Integer bookId) {this.bookId = bookId;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public Date getNeedbackDate() {return needbackDate;}
public void setNeedbackDate(Date needbackDate) {this.needbackDate = needbackDate;}
public Date getBackDate() {return backDate;}
public void setBackDate(Date backDate) {this.backDate = backDate;}
public String getRemark() {return remark;}
public void setRemark(String remark) {this.remark = remark;}
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 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 age;
//性别
private String sex;
//电话
private String phone;
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 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 getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
}

收藏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 studentId;
//图书
private Integer bookId;
//日期
private Date insertDate;
public Integer getStudentId() {return studentId;}
public void setStudentId(Integer studentId) {this.studentId = studentId;}
public Integer getBookId() {return bookId;}
public void setBookId(Integer bookId) {this.bookId = bookId;}
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 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 age;
//性别
private String sex;
//电话
private String phone;
//QQ
private String qq;
//邮箱
private String email;
//头像
private String pic;
//身份证
private String sfz;
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 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 getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getQq() {return qq;}
public void setQq(String qq) {this.qq = qq;}
public String getEmail() {return email;}
public void setEmail(String email) {this.email = email;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public String getSfz() {return sfz;}
public void setSfz(String sfz) {this.sfz = sfz;}
}

图书分类javaBean创建语句如下:


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

//图书分类
public class Types  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//类型名称
private String typesName;
public String getTypesName() {return typesName;}
public void setTypesName(String typesName) {this.typesName = typesName;}
}

源代码下载点这里

评论