足球赛管家

足球赛管家登录注册界面

足球赛管家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_bk(
	id int primary key auto_increment comment '主键',
	bkName 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 '密码',
	customerName varchar(100) comment '姓名',
	sex varchar(100) comment '性别',
	address varchar(100) comment '地址',
	phone varchar(100) comment '手机',
	account int comment '账户',
	jf int comment '积分',
	headPic varchar(100) comment '头像'
) comment '客户';

积分榜表创建语句如下:


create table t_jfb(
	id int primary key auto_increment comment '主键',
	saichengId int comment '赛程',
	ls varchar(100) comment '联赛',
	teamId varchar(100) comment '球队',
	lc varchar(100) comment '轮次',
	v1 varchar(100) comment '胜平负',
	v2 int comment '进球',
	v3 int comment '失球',
	v4 int comment '积分'
) comment '积分榜';

球员进球表创建语句如下:


create table t_jq(
	id int primary key auto_increment comment '主键',
	qyId int comment '球员',
	ls varchar(100) comment '联赛',
	saichengId int comment '轮次',
	jqs int comment '进球数'
) comment '球员进球';

轮播图表创建语句如下:


create table t_lbt(
	id int primary key auto_increment comment '主键',
	pic varchar(100) comment '图片'
) comment '轮播图';

评论表创建语句如下:


create table t_pinglun(
	id int primary key auto_increment comment '主键',
	wdxxId int comment '评论信息',
	customerId int comment '评论人',
	content varchar(100) comment '评论内容',
	insertDate datetime comment '评论日期'
) comment '评论';

球员表创建语句如下:


create table t_qy(
	id int primary key auto_increment comment '主键',
	teamId int comment '球队',
	qyName varchar(100) comment '球员姓名',
	v1 varchar(100) comment '国籍',
	v2 varchar(100) comment '出生年月',
	v3 varchar(100) comment '身高',
	v4 varchar(100) comment '场上位置',
	v5 varchar(100) comment '头像'
) comment '球员';

赛程表创建语句如下:


create table t_saicheng(
	id int primary key auto_increment comment '主键',
	ls varchar(100) comment '联赛',
	saichengName varchar(100) comment '轮次',
	team1Id int comment '主队',
	team2Id int comment '客队',
	beginDate datetime comment '比赛日期',
	code1 int comment '主队分数',
	code2 int comment '客队分数',
	status varchar(100) comment '状态'
) comment '赛程';

收藏表创建语句如下:


create table t_sc(
	id int primary key auto_increment comment '主键',
	customerId int comment '用户',
	productId int comment '产品',
	insertDate datetime comment '日期'
) comment '收藏';

球队表创建语句如下:


create table t_team(
	id int primary key auto_increment comment '主键',
	teamName varchar(100) comment '球队名称',
	v1 varchar(100) comment '主场名称',
	v2 varchar(100) comment '主教练',
	v3 varchar(100) comment '球队图片'
) comment '球队';

分类表创建语句如下:


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

普通员工表创建语句如下:


create table t_user(
	id int primary key auto_increment comment '主键',
	username varchar(100) comment '账号',
	password varchar(100) comment '密码',
	name varchar(100) comment '姓名',
	gh varchar(100) comment '工号',
	mobile varchar(100) comment '手机'
) comment '普通员工';

我的消息表创建语句如下:


create table t_wdxx(
	id int primary key auto_increment comment '主键',
	customerId int comment '我',
	title varchar(100) comment '标题',
	pic varchar(100) comment '图片',
	content varchar(100) comment '内容',
	zan int comment '赞',
	insertDate datetime comment '发布日期',
	nologin varchar(100) comment '游客是否可见',
	bkId int comment ''
) comment '我的消息';

资讯表创建语句如下:


create table t_zx(
	id int primary key auto_increment comment '主键',
	title varchar(100) comment '标题',
	content varchar(100) comment '内容',
	pic varchar(100) 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_bk(
	id integer,
	bkName varchar(100)
);
--分类字段加注释
comment on column t_bk.id is '主键';
comment on column t_bk.bkName is '分类名称';
--分类表加注释
comment on table t_bk 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),
	customerName varchar(100),
	sex varchar(100),
	address varchar(100),
	phone varchar(100),
	account int,
	jf int,
	headPic 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.sex is '性别';
comment on column t_customer.address is '地址';
comment on column t_customer.phone is '手机';
comment on column t_customer.account is '账户';
comment on column t_customer.jf is '积分';
comment on column t_customer.headPic is '头像';
--客户表加注释
comment on table t_customer is '客户';

积分榜表创建语句如下:


create table t_jfb(
	id integer,
	saichengId int,
	ls varchar(100),
	teamId varchar(100),
	lc varchar(100),
	v1 varchar(100),
	v2 int,
	v3 int,
	v4 int
);
--积分榜字段加注释
comment on column t_jfb.id is '主键';
comment on column t_jfb.saichengId is '赛程';
comment on column t_jfb.ls is '联赛';
comment on column t_jfb.teamId is '球队';
comment on column t_jfb.lc is '轮次';
comment on column t_jfb.v1 is '胜平负';
comment on column t_jfb.v2 is '进球';
comment on column t_jfb.v3 is '失球';
comment on column t_jfb.v4 is '积分';
--积分榜表加注释
comment on table t_jfb is '积分榜';

球员进球表创建语句如下:


create table t_jq(
	id integer,
	qyId int,
	ls varchar(100),
	saichengId int,
	jqs int
);
--球员进球字段加注释
comment on column t_jq.id is '主键';
comment on column t_jq.qyId is '球员';
comment on column t_jq.ls is '联赛';
comment on column t_jq.saichengId is '轮次';
comment on column t_jq.jqs is '进球数';
--球员进球表加注释
comment on table t_jq is '球员进球';

轮播图表创建语句如下:


create table t_lbt(
	id integer,
	pic varchar(100)
);
--轮播图字段加注释
comment on column t_lbt.id is '主键';
comment on column t_lbt.pic is '图片';
--轮播图表加注释
comment on table t_lbt is '轮播图';

评论表创建语句如下:


create table t_pinglun(
	id integer,
	wdxxId int,
	customerId int,
	content varchar(100),
	insertDate datetime
);
--评论字段加注释
comment on column t_pinglun.id is '主键';
comment on column t_pinglun.wdxxId is '评论信息';
comment on column t_pinglun.customerId is '评论人';
comment on column t_pinglun.content is '评论内容';
comment on column t_pinglun.insertDate is '评论日期';
--评论表加注释
comment on table t_pinglun is '评论';

球员表创建语句如下:


create table t_qy(
	id integer,
	teamId int,
	qyName varchar(100),
	v1 varchar(100),
	v2 varchar(100),
	v3 varchar(100),
	v4 varchar(100),
	v5 varchar(100)
);
--球员字段加注释
comment on column t_qy.id is '主键';
comment on column t_qy.teamId is '球队';
comment on column t_qy.qyName is '球员姓名';
comment on column t_qy.v1 is '国籍';
comment on column t_qy.v2 is '出生年月';
comment on column t_qy.v3 is '身高';
comment on column t_qy.v4 is '场上位置';
comment on column t_qy.v5 is '头像';
--球员表加注释
comment on table t_qy is '球员';

赛程表创建语句如下:


create table t_saicheng(
	id integer,
	ls varchar(100),
	saichengName varchar(100),
	team1Id int,
	team2Id int,
	beginDate datetime,
	code1 int,
	code2 int,
	status varchar(100)
);
--赛程字段加注释
comment on column t_saicheng.id is '主键';
comment on column t_saicheng.ls is '联赛';
comment on column t_saicheng.saichengName is '轮次';
comment on column t_saicheng.team1Id is '主队';
comment on column t_saicheng.team2Id is '客队';
comment on column t_saicheng.beginDate is '比赛日期';
comment on column t_saicheng.code1 is '主队分数';
comment on column t_saicheng.code2 is '客队分数';
comment on column t_saicheng.status is '状态';
--赛程表加注释
comment on table t_saicheng is '赛程';

收藏表创建语句如下:


create table t_sc(
	id integer,
	customerId int,
	productId int,
	insertDate datetime
);
--收藏字段加注释
comment on column t_sc.id is '主键';
comment on column t_sc.customerId is '用户';
comment on column t_sc.productId is '产品';
comment on column t_sc.insertDate is '日期';
--收藏表加注释
comment on table t_sc is '收藏';

球队表创建语句如下:


create table t_team(
	id integer,
	teamName varchar(100),
	v1 varchar(100),
	v2 varchar(100),
	v3 varchar(100)
);
--球队字段加注释
comment on column t_team.id is '主键';
comment on column t_team.teamName is '球队名称';
comment on column t_team.v1 is '主场名称';
comment on column t_team.v2 is '主教练';
comment on column t_team.v3 is '球队图片';
--球队表加注释
comment on table t_team 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 '分类';

普通员工表创建语句如下:


create table t_user(
	id integer,
	username varchar(100),
	password varchar(100),
	name varchar(100),
	gh varchar(100),
	mobile varchar(100)
);
--普通员工字段加注释
comment on column t_user.id is '主键';
comment on column t_user.username is '账号';
comment on column t_user.password is '密码';
comment on column t_user.name is '姓名';
comment on column t_user.gh is '工号';
comment on column t_user.mobile is '手机';
--普通员工表加注释
comment on table t_user is '普通员工';

我的消息表创建语句如下:


create table t_wdxx(
	id integer,
	customerId int,
	title varchar(100),
	pic varchar(100),
	content varchar(100),
	zan int,
	insertDate datetime,
	nologin varchar(100),
	bkId int
);
--我的消息字段加注释
comment on column t_wdxx.id is '主键';
comment on column t_wdxx.customerId is '我';
comment on column t_wdxx.title is '标题';
comment on column t_wdxx.pic is '图片';
comment on column t_wdxx.content is '内容';
comment on column t_wdxx.zan is '赞';
comment on column t_wdxx.insertDate is '发布日期';
comment on column t_wdxx.nologin is '游客是否可见';
comment on column t_wdxx.bkId is '';
--我的消息表加注释
comment on table t_wdxx is '我的消息';

资讯表创建语句如下:


create table t_zx(
	id integer,
	title varchar(100),
	content varchar(100),
	pic varchar(100)
);
--资讯字段加注释
comment on column t_zx.id is '主键';
comment on column t_zx.title is '标题';
comment on column t_zx.content is '内容';
comment on column t_zx.pic is '图片';
--资讯表加注释
comment on table t_zx is '资讯';

oracle特有,对应序列如下:


create sequence s_t_bk;
create sequence s_t_contact;
create sequence s_t_customer;
create sequence s_t_jfb;
create sequence s_t_jq;
create sequence s_t_lbt;
create sequence s_t_pinglun;
create sequence s_t_qy;
create sequence s_t_saicheng;
create sequence s_t_sc;
create sequence s_t_team;
create sequence s_t_types;
create sequence s_t_user;
create sequence s_t_wdxx;
create sequence s_t_zx;

足球赛管家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_bk(
	id int identity(1,1) primary key not null,--主键
	bkName 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),--密码
	customerName varchar(100),--姓名
	sex varchar(100),--性别
	address varchar(100),--地址
	phone varchar(100),--手机
	account int,--账户
	jf int,--积分
	headPic varchar(100)--头像
);

积分榜表创建语句如下:


--积分榜表注释
create table t_jfb(
	id int identity(1,1) primary key not null,--主键
	saichengId int,--赛程
	ls varchar(100),--联赛
	teamId varchar(100),--球队
	lc varchar(100),--轮次
	v1 varchar(100),--胜平负
	v2 int,--进球
	v3 int,--失球
	v4 int--积分
);

球员进球表创建语句如下:


--球员进球表注释
create table t_jq(
	id int identity(1,1) primary key not null,--主键
	qyId int,--球员
	ls varchar(100),--联赛
	saichengId int,--轮次
	jqs int--进球数
);

轮播图表创建语句如下:


--轮播图表注释
create table t_lbt(
	id int identity(1,1) primary key not null,--主键
	pic varchar(100)--图片
);

评论表创建语句如下:


--评论表注释
create table t_pinglun(
	id int identity(1,1) primary key not null,--主键
	wdxxId int,--评论信息
	customerId int,--评论人
	content varchar(100),--评论内容
	insertDate datetime--评论日期
);

球员表创建语句如下:


--球员表注释
create table t_qy(
	id int identity(1,1) primary key not null,--主键
	teamId int,--球队
	qyName varchar(100),--球员姓名
	v1 varchar(100),--国籍
	v2 varchar(100),--出生年月
	v3 varchar(100),--身高
	v4 varchar(100),--场上位置
	v5 varchar(100)--头像
);

赛程表创建语句如下:


--赛程表注释
create table t_saicheng(
	id int identity(1,1) primary key not null,--主键
	ls varchar(100),--联赛
	saichengName varchar(100),--轮次
	team1Id int,--主队
	team2Id int,--客队
	beginDate datetime,--比赛日期
	code1 int,--主队分数
	code2 int,--客队分数
	status varchar(100)--状态
);

收藏表创建语句如下:


--收藏表注释
create table t_sc(
	id int identity(1,1) primary key not null,--主键
	customerId int,--用户
	productId int,--产品
	insertDate datetime--日期
);

球队表创建语句如下:


--球队表注释
create table t_team(
	id int identity(1,1) primary key not null,--主键
	teamName varchar(100),--球队名称
	v1 varchar(100),--主场名称
	v2 varchar(100),--主教练
	v3 varchar(100)--球队图片
);

分类表创建语句如下:


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

普通员工表创建语句如下:


--普通员工表注释
create table t_user(
	id int identity(1,1) primary key not null,--主键
	username varchar(100),--账号
	password varchar(100),--密码
	name varchar(100),--姓名
	gh varchar(100),--工号
	mobile varchar(100)--手机
);

我的消息表创建语句如下:


--我的消息表注释
create table t_wdxx(
	id int identity(1,1) primary key not null,--主键
	customerId int,--我
	title varchar(100),--标题
	pic varchar(100),--图片
	content varchar(100),--内容
	zan int,--赞
	insertDate datetime,--发布日期
	nologin varchar(100),--游客是否可见
	bkId int--
);

资讯表创建语句如下:


--资讯表注释
create table t_zx(
	id int identity(1,1) primary key not null,--主键
	title varchar(100),--标题
	content varchar(100),--内容
	pic varchar(100)--图片
);

足球赛管家登录后主页

足球赛管家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_bk")
public class Bk {
//主键
@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 bkName;
public String getBkName() {return bkName;}
public void setBkName(String bkName) {this.bkName = bkName;}
}

建议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 customerName;
//性别
private String sex;
//地址
private String address;
//手机
private String phone;
//账户
private Integer account;
//积分
private Integer jf;
//头像
private String headPic;
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 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 getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public Integer getAccount() {return account;}
public void setAccount(Integer account) {this.account = account;}
public Integer getJf() {return jf;}
public void setJf(Integer jf) {this.jf = jf;}
public String getHeadPic() {return headPic;}
public void setHeadPic(String headPic) {this.headPic = headPic;}
}

积分榜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_jfb")
public class Jfb {
//主键
@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 saichengId;
//联赛
private String ls;
//球队
private String teamId;
//轮次
private String lc;
//胜平负
private String v1;
//进球
private Integer v2;
//失球
private Integer v3;
//积分
private Integer v4;
public Integer getSaichengId() {return saichengId;}
public void setSaichengId(Integer saichengId) {this.saichengId = saichengId;}
public String getLs() {return ls;}
public void setLs(String ls) {this.ls = ls;}
public String getTeamId() {return teamId;}
public void setTeamId(String teamId) {this.teamId = teamId;}
public String getLc() {return lc;}
public void setLc(String lc) {this.lc = lc;}
public String getV1() {return v1;}
public void setV1(String 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_jq")
public class Jq {
//主键
@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 qyId;
//联赛
private String ls;
//轮次
private Integer saichengId;
//进球数
private Integer jqs;
public Integer getQyId() {return qyId;}
public void setQyId(Integer qyId) {this.qyId = qyId;}
public String getLs() {return ls;}
public void setLs(String ls) {this.ls = ls;}
public Integer getSaichengId() {return saichengId;}
public void setSaichengId(Integer saichengId) {this.saichengId = saichengId;}
public Integer getJqs() {return jqs;}
public void setJqs(Integer jqs) {this.jqs = jqs;}
}

轮播图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_lbt")
public class Lbt {
//主键
@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 pic;
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
}

评论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_pinglun")
public class Pinglun {
//主键
@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 wdxxId;
//评论人
private Integer customerId;
//评论内容
private String content;
//评论日期
private Date insertDate;
public Integer getWdxxId() {return wdxxId;}
public void setWdxxId(Integer wdxxId) {this.wdxxId = wdxxId;}
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
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_qy")
public class Qy {
//主键
@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 teamId;
//球员姓名
private String qyName;
//国籍
private String v1;
//出生年月
private String v2;
//身高
private String v3;
//场上位置
private String v4;
//头像
private String v5;
public Integer getTeamId() {return teamId;}
public void setTeamId(Integer teamId) {this.teamId = teamId;}
public String getQyName() {return qyName;}
public void setQyName(String qyName) {this.qyName = qyName;}
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;}
}

赛程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_saicheng")
public class Saicheng {
//主键
@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 ls;
//轮次
private String saichengName;
//主队
private Integer team1Id;
//客队
private Integer team2Id;
//比赛日期
private Date beginDate;
//主队分数
private Integer code1;
//客队分数
private Integer code2;
//状态
private String status;
public String getLs() {return ls;}
public void setLs(String ls) {this.ls = ls;}
public String getSaichengName() {return saichengName;}
public void setSaichengName(String saichengName) {this.saichengName = saichengName;}
public Integer getTeam1Id() {return team1Id;}
public void setTeam1Id(Integer team1Id) {this.team1Id = team1Id;}
public Integer getTeam2Id() {return team2Id;}
public void setTeam2Id(Integer team2Id) {this.team2Id = team2Id;}
public Date getBeginDate() {return beginDate;}
public void setBeginDate(Date beginDate) {this.beginDate = beginDate;}
public Integer getCode1() {return code1;}
public void setCode1(Integer code1) {this.code1 = code1;}
public Integer getCode2() {return code2;}
public void setCode2(Integer code2) {this.code2 = code2;}
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_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 productId;
//日期
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getProductId() {return productId;}
public void setProductId(Integer productId) {this.productId = productId;}
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_team")
public class Team {
//主键
@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 teamName;
//主场名称
private String v1;
//主教练
private String v2;
//球队图片
private String v3;
public String getTeamName() {return teamName;}
public void setTeamName(String teamName) {this.teamName = teamName;}
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;}
}

分类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;}
}

普通员工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_user")
public class User {
//主键
@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 gh;
//手机
private String mobile;
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 getGh() {return gh;}
public void setGh(String gh) {this.gh = gh;}
public String getMobile() {return mobile;}
public void setMobile(String mobile) {this.mobile = mobile;}
}

我的消息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_wdxx")
public class Wdxx {
//主键
@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 title;
//图片
private String pic;
//内容
private String content;
//赞
private Integer zan;
//发布日期
private Date insertDate;
//游客是否可见
private String nologin;
//
private Integer bkId;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public Integer getZan() {return zan;}
public void setZan(Integer zan) {this.zan = zan;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getNologin() {return nologin;}
public void setNologin(String nologin) {this.nologin = nologin;}
public Integer getBkId() {return bkId;}
public void setBkId(Integer bkId) {this.bkId = bkId;}
}

资讯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_zx")
public class Zx {
//主键
@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;
//图片
private String pic;
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;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
}

足球赛管家spring+springMVC+mybatis框架对象(javaBean,pojo)设计:

分类javaBean创建语句如下:


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

//分类
public class Bk  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//分类名称
private String bkName;
public String getBkName() {return bkName;}
public void setBkName(String bkName) {this.bkName = bkName;}
}

建议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 customerName;
//性别
private String sex;
//地址
private String address;
//手机
private String phone;
//账户
private Integer account;
//积分
private Integer jf;
//头像
private String headPic;
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 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 getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public Integer getAccount() {return account;}
public void setAccount(Integer account) {this.account = account;}
public Integer getJf() {return jf;}
public void setJf(Integer jf) {this.jf = jf;}
public String getHeadPic() {return headPic;}
public void setHeadPic(String headPic) {this.headPic = headPic;}
}

积分榜javaBean创建语句如下:


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

//积分榜
public class Jfb  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//赛程
private Integer saichengId;
//联赛
private String ls;
//球队
private String teamId;
//轮次
private String lc;
//胜平负
private String v1;
//进球
private Integer v2;
//失球
private Integer v3;
//积分
private Integer v4;
public Integer getSaichengId() {return saichengId;}
public void setSaichengId(Integer saichengId) {this.saichengId = saichengId;}
public String getLs() {return ls;}
public void setLs(String ls) {this.ls = ls;}
public String getTeamId() {return teamId;}
public void setTeamId(String teamId) {this.teamId = teamId;}
public String getLc() {return lc;}
public void setLc(String lc) {this.lc = lc;}
public String getV1() {return v1;}
public void setV1(String 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 Jq  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//球员
private Integer qyId;
//联赛
private String ls;
//轮次
private Integer saichengId;
//进球数
private Integer jqs;
public Integer getQyId() {return qyId;}
public void setQyId(Integer qyId) {this.qyId = qyId;}
public String getLs() {return ls;}
public void setLs(String ls) {this.ls = ls;}
public Integer getSaichengId() {return saichengId;}
public void setSaichengId(Integer saichengId) {this.saichengId = saichengId;}
public Integer getJqs() {return jqs;}
public void setJqs(Integer jqs) {this.jqs = jqs;}
}

轮播图javaBean创建语句如下:


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

//轮播图
public class Lbt  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//图片
private String pic;
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
}

评论javaBean创建语句如下:


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

//评论
public class Pinglun  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//评论信息
private Integer wdxxId;
//评论人
private Integer customerId;
//评论内容
private String content;
//评论日期
private Date insertDate;
public Integer getWdxxId() {return wdxxId;}
public void setWdxxId(Integer wdxxId) {this.wdxxId = wdxxId;}
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
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 Qy  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//球队
private Integer teamId;
//球员姓名
private String qyName;
//国籍
private String v1;
//出生年月
private String v2;
//身高
private String v3;
//场上位置
private String v4;
//头像
private String v5;
public Integer getTeamId() {return teamId;}
public void setTeamId(Integer teamId) {this.teamId = teamId;}
public String getQyName() {return qyName;}
public void setQyName(String qyName) {this.qyName = qyName;}
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;}
}

赛程javaBean创建语句如下:


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

//赛程
public class Saicheng  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//联赛
private String ls;
//轮次
private String saichengName;
//主队
private Integer team1Id;
//客队
private Integer team2Id;
//比赛日期
private Date beginDate;
//主队分数
private Integer code1;
//客队分数
private Integer code2;
//状态
private String status;
public String getLs() {return ls;}
public void setLs(String ls) {this.ls = ls;}
public String getSaichengName() {return saichengName;}
public void setSaichengName(String saichengName) {this.saichengName = saichengName;}
public Integer getTeam1Id() {return team1Id;}
public void setTeam1Id(Integer team1Id) {this.team1Id = team1Id;}
public Integer getTeam2Id() {return team2Id;}
public void setTeam2Id(Integer team2Id) {this.team2Id = team2Id;}
public Date getBeginDate() {return beginDate;}
public void setBeginDate(Date beginDate) {this.beginDate = beginDate;}
public Integer getCode1() {return code1;}
public void setCode1(Integer code1) {this.code1 = code1;}
public Integer getCode2() {return code2;}
public void setCode2(Integer code2) {this.code2 = code2;}
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 Sc  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//用户
private Integer customerId;
//产品
private Integer productId;
//日期
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getProductId() {return productId;}
public void setProductId(Integer productId) {this.productId = productId;}
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 Team  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//球队名称
private String teamName;
//主场名称
private String v1;
//主教练
private String v2;
//球队图片
private String v3;
public String getTeamName() {return teamName;}
public void setTeamName(String teamName) {this.teamName = teamName;}
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;}
}

分类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;}
}

普通员工javaBean创建语句如下:


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

//普通员工
public class User  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 gh;
//手机
private String mobile;
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 getGh() {return gh;}
public void setGh(String gh) {this.gh = gh;}
public String getMobile() {return mobile;}
public void setMobile(String mobile) {this.mobile = mobile;}
}

我的消息javaBean创建语句如下:


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

//我的消息
public class Wdxx  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//我
private Integer customerId;
//标题
private String title;
//图片
private String pic;
//内容
private String content;
//赞
private Integer zan;
//发布日期
private Date insertDate;
//游客是否可见
private String nologin;
//
private Integer bkId;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getTitle() {return title;}
public void setTitle(String title) {this.title = title;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public Integer getZan() {return zan;}
public void setZan(Integer zan) {this.zan = zan;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getNologin() {return nologin;}
public void setNologin(String nologin) {this.nologin = nologin;}
public Integer getBkId() {return bkId;}
public void setBkId(Integer bkId) {this.bkId = bkId;}
}

资讯javaBean创建语句如下:


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

//资讯
public class Zx  extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//标题
private String title;
//内容
private String content;
//图片
private String pic;
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;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
}

相关毕业设计源码

足球赛管家

足球赛管家,提供三种数据库:mysql,oracle,sqlserver,对应三种框架源码:springMVC/spring+springMVC+hibernate/spring+springMVC+mybatis,开发工具是myeclipse,提供基本增删改查,后台分页,图片上传,附件上传,富文本编辑器,时间选择器等功能。

评论