- 社团管理mysql数据库创建语句
- 社团管理oracle数据库创建语句
- 社团管理sqlserver数据库创建语句
- 社团管理spring+springMVC+hibernate框架对象(javaBean,pojo)设计
- 社团管理spring+springMVC+mybatis框架对象(javaBean,pojo)设计
社团管理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_qiandao(
id int primary key auto_increment comment '主键',
userId int comment '社团',
title varchar(100) comment '签到说明'
) comment '社团签到';
签到列表表创建语句如下:
create table t_qiandaolist(
id int primary key auto_increment comment '主键',
qiandaoId int comment '签到',
customerId int comment '用户',
insertDate datetime comment '签到日期',
ipaddress varchar(100) comment 'ip地址'
) comment '签到列表';
社团加入申请表创建语句如下:
create table t_shenqing(
id int primary key auto_increment comment '主键',
customerId int comment '学生',
userId int comment '社团',
insertDate datetime comment '申请日期',
status varchar(100) comment '状态',
js varchar(100) comment '',
back text comment '回复'
) comment '社团加入申请';
社团管理oracle数据库版本源码:
超级管理员表创建语句如下:
create table t_admin(
id integer,
username varchar(100),
password varchar(100)
);
insert into t_admin(id,username,password) values(1,'admin','123456');
--超级管理员字段加注释
comment on column t_admin.id is '主键';
comment on column t_admin.username is '超级管理员账号';
comment on column t_admin.password is '超级管理员密码';
--超级管理员表加注释
comment on table t_admin is '超级管理员';
社团签到表创建语句如下:
create table t_qiandao(
id integer,
userId int,
title varchar(100)
);
--社团签到字段加注释
comment on column t_qiandao.id is '主键';
comment on column t_qiandao.userId is '社团';
comment on column t_qiandao.title is '签到说明';
--社团签到表加注释
comment on table t_qiandao is '社团签到';
签到列表表创建语句如下:
create table t_qiandaolist(
id integer,
qiandaoId int,
customerId int,
insertDate datetime,
ipaddress varchar(100)
);
--签到列表字段加注释
comment on column t_qiandaolist.id is '主键';
comment on column t_qiandaolist.qiandaoId is '签到';
comment on column t_qiandaolist.customerId is '用户';
comment on column t_qiandaolist.insertDate is '签到日期';
comment on column t_qiandaolist.ipaddress is 'ip地址';
--签到列表表加注释
comment on table t_qiandaolist is '签到列表';
社团加入申请表创建语句如下:
create table t_shenqing(
id integer,
customerId int,
userId int,
insertDate datetime,
status varchar(100),
js varchar(100),
back text
);
--社团加入申请字段加注释
comment on column t_shenqing.id is '主键';
comment on column t_shenqing.customerId is '学生';
comment on column t_shenqing.userId is '社团';
comment on column t_shenqing.insertDate is '申请日期';
comment on column t_shenqing.status is '状态';
comment on column t_shenqing.js is '';
comment on column t_shenqing.back is '回复';
--社团加入申请表加注释
comment on table t_shenqing is '社团加入申请';
oracle特有,对应序列如下:
create sequence s_t_qiandao;
create sequence s_t_qiandaolist;
create sequence s_t_shenqing;
社团管理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_qiandao(
id int identity(1,1) primary key not null,--主键
userId int,--社团
title varchar(100)--签到说明
);
签到列表表创建语句如下:
--签到列表表注释
create table t_qiandaolist(
id int identity(1,1) primary key not null,--主键
qiandaoId int,--签到
customerId int,--用户
insertDate datetime,--签到日期
ipaddress varchar(100)--ip地址
);
社团加入申请表创建语句如下:
--社团加入申请表注释
create table t_shenqing(
id int identity(1,1) primary key not null,--主键
customerId int,--学生
userId int,--社团
insertDate datetime,--申请日期
status varchar(100),--状态
js varchar(100),--
back text--回复
);
社团管理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_qiandao")
public class Qiandao {
//主键
@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 Long userId;
//签到说明
private String title;
public Long getUserId() {return userId;}
public void setUserId(Long userId) {this.userId = userId;}
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
}
签到列表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_qiandaolist")
public class Qiandaolist {
//主键
@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 Long qiandaoId;
//用户
private Long customerId;
//签到日期
private Date insertDate;
//ip地址
private String ipaddress;
public Long getQiandaoId() {return qiandaoId;}
public void setQiandaoId(Long qiandaoId) {this.qiandaoId = qiandaoId;}
public Long getCustomerId() {return customerId;}
public void setCustomerId(Long customerId) {this.customerId = customerId;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getIpaddress() {return ipaddress;}
public void setIpaddress(String ipaddress) {this.ipaddress = ipaddress;}
}
社团加入申请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_shenqing")
public class Shenqing {
//主键
@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 Long customerId;
//社团
private Long userId;
//申请日期
private Date insertDate;
//状态
private String status;
//
private String js;
//回复
private String back;
public Long getCustomerId() {return customerId;}
public void setCustomerId(Long customerId) {this.customerId = customerId;}
public Long getUserId() {return userId;}
public void setUserId(Long userId) {this.userId = userId;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
public String getJs() {return js;}
public void setJs(String js) {this.js = js;}
public String getBack() {return back;}
public void setBack(String back) {this.back = back;}
}
社团管理spring+springMVC+mybatis框架对象(javaBean,pojo)设计:
社团签到javaBean创建语句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//社团签到
public class Qiandao extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//社团
private Long userId;
//签到说明
private String title;
public Long getUserId() {return userId;}
public void setUserId(Long userId) {this.userId = userId;}
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
}
签到列表javaBean创建语句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//签到列表
public class Qiandaolist extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//签到
private Long qiandaoId;
//用户
private Long customerId;
//签到日期
private Date insertDate;
//ip地址
private String ipaddress;
public Long getQiandaoId() {return qiandaoId;}
public void setQiandaoId(Long qiandaoId) {this.qiandaoId = qiandaoId;}
public Long getCustomerId() {return customerId;}
public void setCustomerId(Long customerId) {this.customerId = customerId;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getIpaddress() {return ipaddress;}
public void setIpaddress(String ipaddress) {this.ipaddress = ipaddress;}
}
社团加入申请javaBean创建语句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//社团加入申请
public class Shenqing extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//学生
private Long customerId;
//社团
private Long userId;
//申请日期
private Date insertDate;
//状态
private String status;
//
private String js;
//回复
private String back;
public Long getCustomerId() {return customerId;}
public void setCustomerId(Long customerId) {this.customerId = customerId;}
public Long getUserId() {return userId;}
public void setUserId(Long userId) {this.userId = userId;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getStatus() {return status;}
public void setStatus(String status) {this.status = status;}
public String getJs() {return js;}
public void setJs(String js) {this.js = js;}
public String getBack() {return back;}
public void setBack(String back) {this.back = back;}
}