- 基于SSM图书馆座位预约系统mysql数据库创建语句
- 基于SSM图书馆座位预约系统oracle数据库创建语句
- 基于SSM图书馆座位预约系统sqlserver数据库创建语句
- 基于SSM图书馆座位预约系统spring+springMVC+hibernate框架对象(javaBean,pojo)设计
- 基于SSM图书馆座位预约系统spring+springMVC+mybatis框架对象(javaBean,pojo)设计
登录注册界面.jpg?x-oss-process=style/00001)
基于SSM图书馆座位预约系统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_customer(
id int primary key auto_increment comment '主键',
username varchar(100) comment '账号',
password varchar(100) comment '密码',
customerName varchar(100) comment '姓名',
phone varchar(100) comment '电话',
age varchar(100) comment '年龄',
issx varchar(100) comment '是否失信'
) comment '学生';
公告表创建语句如下:
create table t_gg(
id int primary key auto_increment comment '主键',
title varchar(100) comment '标题',
pic varchar(100) comment '图片',
cotnent varchar(100) comment '内容',
showDate datetime comment '日期'
) comment '公告';
预约表创建语句如下:
create table t_order(
id int primary key auto_increment comment '主键',
customerId int comment '学生',
orderday varchar(100) comment '预约日期',
beginDate int comment '开始时间',
endDate int comment '结束时间',
wz varchar(100) comment '位置',
status varchar(100) comment '状态'
) comment '预约';
基于SSM图书馆座位预约系统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_customer(
id integer,
username varchar(100),
password varchar(100),
customerName varchar(100),
phone varchar(100),
age varchar(100),
issx varchar(100)
);
--学生字段加注释
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.customerName is '姓名';
comment on column t_customer.phone is '电话';
comment on column t_customer.age is '年龄';
comment on column t_customer.issx is '是否失信';
--学生表加注释
comment on table t_customer is '学生';
公告表创建语句如下:
create table t_gg(
id integer,
title varchar(100),
pic varchar(100),
cotnent varchar(100),
showDate datetime
);
--公告字段加注释
comment on column t_gg.id is '主键';
comment on column t_gg.title is '标题';
comment on column t_gg.pic is '图片';
comment on column t_gg.cotnent is '内容';
comment on column t_gg.showDate is '日期';
--公告表加注释
comment on table t_gg is '公告';
预约表创建语句如下:
create table t_order(
id integer,
customerId int,
orderday varchar(100),
beginDate int,
endDate int,
wz varchar(100),
status varchar(100)
);
--预约字段加注释
comment on column t_order.id is '主键';
comment on column t_order.customerId is '学生';
comment on column t_order.orderday is '预约日期';
comment on column t_order.beginDate is '开始时间';
comment on column t_order.endDate is '结束时间';
comment on column t_order.wz is '位置';
comment on column t_order.status is '状态';
--预约表加注释
comment on table t_order is '预约';
oracle特有,对应序列如下:
create sequence s_t_customer;
create sequence s_t_gg;
create sequence s_t_order;
基于SSM图书馆座位预约系统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_customer(
id int identity(1,1) primary key not null,--主键
username varchar(100),--账号
password varchar(100),--密码
customerName varchar(100),--姓名
phone varchar(100),--电话
age varchar(100),--年龄
issx varchar(100)--是否失信
);
公告表创建语句如下:
--公告表注释
create table t_gg(
id int identity(1,1) primary key not null,--主键
title varchar(100),--标题
pic varchar(100),--图片
cotnent varchar(100),--内容
showDate datetime--日期
);
预约表创建语句如下:
--预约表注释
create table t_order(
id int identity(1,1) primary key not null,--主键
customerId int,--学生
orderday varchar(100),--预约日期
beginDate int,--开始时间
endDate int,--结束时间
wz varchar(100),--位置
status varchar(100)--状态
);
登录后主页.jpg?x-oss-process=style/00001)
基于SSM图书馆座位预约系统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_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 customerName;
//电话
private String phone;
//年龄
private String age;
//是否失信
private String issx;
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 getCustomerName() {return customerName;}
public void setCustomerName(String customerName) {this.customerName = customerName;}
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 getIssx() {return issx;}
public void setIssx(String issx) {this.issx = issx;}
}
公告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_gg")
public class Gg {
//主键
@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 pic;
//内容
private String cotnent;
//日期
private Date showDate;
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 getCotnent() {return cotnent;}
public void setCotnent(String cotnent) {this.cotnent = cotnent;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
}
预约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 customerId;
//预约日期
private String orderday;
//开始时间
private Integer beginDate;
//结束时间
private Integer endDate;
//位置
private String wz;
//状态
private String status;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getOrderday() {return orderday;}
public void setOrderday(String orderday) {this.orderday = orderday;}
public Integer getBeginDate() {return beginDate;}
public void setBeginDate(Integer beginDate) {this.beginDate = beginDate;}
public Integer getEndDate() {return endDate;}
public void setEndDate(Integer endDate) {this.endDate = endDate;}
public String getWz() {return wz;}
public void setWz(String wz) {this.wz = wz;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
}
基于SSM图书馆座位预约系统spring+springMVC+mybatis框架对象(javaBean,pojo)设计:
学生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 customerName;
//电话
private String phone;
//年龄
private String age;
//是否失信
private String issx;
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 getCustomerName() {return customerName;}
public void setCustomerName(String customerName) {this.customerName = customerName;}
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 getIssx() {return issx;}
public void setIssx(String issx) {this.issx = issx;}
}
公告javaBean创建语句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//公告
public class Gg extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//标题
private String title;
//图片
private String pic;
//内容
private String cotnent;
//日期
private Date showDate;
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 getCotnent() {return cotnent;}
public void setCotnent(String cotnent) {this.cotnent = cotnent;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
}
预约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 customerId;
//预约日期
private String orderday;
//开始时间
private Integer beginDate;
//结束时间
private Integer endDate;
//位置
private String wz;
//状态
private String status;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getOrderday() {return orderday;}
public void setOrderday(String orderday) {this.orderday = orderday;}
public Integer getBeginDate() {return beginDate;}
public void setBeginDate(Integer beginDate) {this.beginDate = beginDate;}
public Integer getEndDate() {return endDate;}
public void setEndDate(Integer endDate) {this.endDate = endDate;}
public String getWz() {return wz;}
public void setWz(String wz) {this.wz = wz;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
}