- 基于Android平台的e环保系统的设计与实现mysql数据库创建语句
- 基于Android平台的e环保系统的设计与实现oracle数据库创建语句
- 基于Android平台的e环保系统的设计与实现sqlserver数据库创建语句
- 基于Android平台的e环保系统的设计与实现spring+springMVC+hibernate框架对象(javaBean,pojo)设计
- 基于Android平台的e环保系统的设计与实现spring+springMVC+mybatis框架对象(javaBean,pojo)设计
基于Android平台的e环保系统的设计与实现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_blog(
id int primary key auto_increment comment '主键',
customerId int comment '用户',
title varchar(100) comment '标题',
content varchar(100) comment '内容',
pic varchar(100) comment '图片',
insertDate datetime comment '发布日期',
vNum int comment '访问数',
pNum int comment '评论数',
types int comment '1是广场 2是问答'
) comment '个人博客';
个人博客评论表创建语句如下:
create table t_blogpinglun(
id int primary key auto_increment comment '主键',
customerId int comment '用户',
blogId int 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 '姓名',
phone varchar(100) comment '电话',
age varchar(100) comment '年龄',
sfz varchar(100) comment '身份证',
sex varchar(100) comment '性别',
headPic varchar(100) comment '头像'
) comment '用户';
新闻表创建语句如下:
create table t_jd(
id int primary key auto_increment comment '主键',
title varchar(100) comment '标题',
pic varchar(100) comment '图片',
content varchar(100) comment '内容',
showTime varchar(100) comment '时间'
) comment '新闻';
轮播图表创建语句如下:
create table t_lbt(
id int primary key auto_increment comment '主键',
title varchar(100) comment '标题',
pic varchar(100) comment '图片',
link varchar(100) comment '链接'
) comment '轮播图';
留言表创建语句如下:
create table t_liuyan(
id int primary key auto_increment comment '主键',
customerId int comment '用户',
content varchar(100) comment '内容',
insertDate datetime comment '日期',
back varchar(100) comment '回复内容',
status varchar(100) 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 '资讯图片',
insertDate datetime comment '发布日期'
) comment '资讯';
基于Android平台的e环保系统的设计与实现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_blog(
id integer,
customerId int,
title varchar(100),
content varchar(100),
pic varchar(100),
insertDate datetime,
vNum int,
pNum int,
types int
);
--个人博客字段加注释
comment on column t_blog.id is '主键';
comment on column t_blog.customerId is '用户';
comment on column t_blog.title is '标题';
comment on column t_blog.content is '内容';
comment on column t_blog.pic is '图片';
comment on column t_blog.insertDate is '发布日期';
comment on column t_blog.vNum is '访问数';
comment on column t_blog.pNum is '评论数';
comment on column t_blog.types is '1是广场 2是问答';
--个人博客表加注释
comment on table t_blog is '个人博客';
个人博客评论表创建语句如下:
create table t_blogpinglun(
id integer,
customerId int,
blogId int,
content varchar(100),
insertDate datetime
);
--个人博客评论字段加注释
comment on column t_blogpinglun.id is '主键';
comment on column t_blogpinglun.customerId is '用户';
comment on column t_blogpinglun.blogId is '博客';
comment on column t_blogpinglun.content is '评论内容';
comment on column t_blogpinglun.insertDate is '评论日期';
--个人博客评论表加注释
comment on table t_blogpinglun is '个人博客评论';
用户表创建语句如下:
create table t_customer(
id integer,
username varchar(100),
password varchar(100),
customerName varchar(100),
phone varchar(100),
age varchar(100),
sfz varchar(100),
sex varchar(100),
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.phone is '电话';
comment on column t_customer.age is '年龄';
comment on column t_customer.sfz is '身份证';
comment on column t_customer.sex is '性别';
comment on column t_customer.headPic is '头像';
--用户表加注释
comment on table t_customer is '用户';
新闻表创建语句如下:
create table t_jd(
id integer,
title varchar(100),
pic varchar(100),
content varchar(100),
showTime varchar(100)
);
--新闻字段加注释
comment on column t_jd.id is '主键';
comment on column t_jd.title is '标题';
comment on column t_jd.pic is '图片';
comment on column t_jd.content is '内容';
comment on column t_jd.showTime is '时间';
--新闻表加注释
comment on table t_jd is '新闻';
轮播图表创建语句如下:
create table t_lbt(
id integer,
title varchar(100),
pic varchar(100),
link varchar(100)
);
--轮播图字段加注释
comment on column t_lbt.id is '主键';
comment on column t_lbt.title is '标题';
comment on column t_lbt.pic is '图片';
comment on column t_lbt.link is '链接';
--轮播图表加注释
comment on table t_lbt is '轮播图';
留言表创建语句如下:
create table t_liuyan(
id integer,
customerId int,
content varchar(100),
insertDate datetime,
back varchar(100),
status varchar(100)
);
--留言字段加注释
comment on column t_liuyan.id is '主键';
comment on column t_liuyan.customerId is '用户';
comment on column t_liuyan.content is '内容';
comment on column t_liuyan.insertDate is '日期';
comment on column t_liuyan.back is '回复内容';
comment on column t_liuyan.status is '状态';
--留言表加注释
comment on table t_liuyan is '留言';
资讯表创建语句如下:
create table t_zx(
id integer,
title varchar(100),
content varchar(100),
pic varchar(100),
insertDate datetime
);
--资讯字段加注释
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 column t_zx.insertDate is '发布日期';
--资讯表加注释
comment on table t_zx is '资讯';
oracle特有,对应序列如下:
create sequence s_t_blog;
create sequence s_t_blogpinglun;
create sequence s_t_customer;
create sequence s_t_jd;
create sequence s_t_lbt;
create sequence s_t_liuyan;
create sequence s_t_zx;
基于Android平台的e环保系统的设计与实现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_blog(
id int identity(1,1) primary key not null,--主键
customerId int,--用户
title varchar(100),--标题
content varchar(100),--内容
pic varchar(100),--图片
insertDate datetime,--发布日期
vNum int,--访问数
pNum int,--评论数
types int--1是广场 2是问答
);
个人博客评论表创建语句如下:
--个人博客评论表注释
create table t_blogpinglun(
id int identity(1,1) primary key not null,--主键
customerId int,--用户
blogId int,--博客
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),--姓名
phone varchar(100),--电话
age varchar(100),--年龄
sfz varchar(100),--身份证
sex varchar(100),--性别
headPic varchar(100)--头像
);
新闻表创建语句如下:
--新闻表注释
create table t_jd(
id int identity(1,1) primary key not null,--主键
title varchar(100),--标题
pic varchar(100),--图片
content varchar(100),--内容
showTime varchar(100)--时间
);
轮播图表创建语句如下:
--轮播图表注释
create table t_lbt(
id int identity(1,1) primary key not null,--主键
title varchar(100),--标题
pic varchar(100),--图片
link varchar(100)--链接
);
留言表创建语句如下:
--留言表注释
create table t_liuyan(
id int identity(1,1) primary key not null,--主键
customerId int,--用户
content varchar(100),--内容
insertDate datetime,--日期
back varchar(100),--回复内容
status varchar(100)--状态
);
资讯表创建语句如下:
--资讯表注释
create table t_zx(
id int identity(1,1) primary key not null,--主键
title varchar(100),--标题
content varchar(100),--内容
pic varchar(100),--资讯图片
insertDate datetime--发布日期
);
基于Android平台的e环保系统的设计与实现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_blog")
public class Blog {
//主键
@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 content;
//图片
private String pic;
//发布日期
private Date insertDate;
//访问数
private Integer vNum;
//评论数
private Integer pNum;
//1是广场 2是问答
private Integer types;
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 getContent() {return content;}
public void setContent(String content) {this.content = content;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public Integer getVNum() {return vNum;}
public void setVNum(Integer vNum) {this.vNum = vNum;}
public Integer getPNum() {return pNum;}
public void setPNum(Integer pNum) {this.pNum = pNum;}
public Integer getTypes() {return types;}
public void setTypes(Integer types) {this.types = types;}
}
个人博客评论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_blogpinglun")
public class Blogpinglun {
//主键
@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 blogId;
//评论内容
private String content;
//评论日期
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getBlogId() {return blogId;}
public void setBlogId(Integer blogId) {this.blogId = blogId;}
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 phone;
//年龄
private String age;
//身份证
private String sfz;
//性别
private String sex;
//头像
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 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 getSfz() {return sfz;}
public void setSfz(String sfz) {this.sfz = sfz;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
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_jd")
public class Jd {
//主键
@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 content;
//时间
private String showTime;
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 String getShowTime() {return showTime;}
public void setShowTime(String showTime) {this.showTime = showTime;}
}
轮播图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 title;
//图片
private String pic;
//链接
private String link;
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 getLink() {return link;}
public void setLink(String link) {this.link = link;}
}
留言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_liuyan")
public class Liuyan {
//主键
@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 content;
//日期
private Date insertDate;
//回复内容
private String back;
//状态
private String status;
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;}
public String getBack() {return back;}
public void setBack(String back) {this.back = back;}
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_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;
//发布日期
private Date insertDate;
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;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}
基于Android平台的e环保系统的设计与实现spring+springMVC+mybatis框架对象(javaBean,pojo)设计:
个人博客javaBean创建语句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//个人博客
public class Blog 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 content;
//图片
private String pic;
//发布日期
private Date insertDate;
//访问数
private Integer vNum;
//评论数
private Integer pNum;
//1是广场 2是问答
private Integer types;
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 getContent() {return content;}
public void setContent(String content) {this.content = content;}
public String getPic() {return pic;}
public void setPic(String pic) {this.pic = pic;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public Integer getVNum() {return vNum;}
public void setVNum(Integer vNum) {this.vNum = vNum;}
public Integer getPNum() {return pNum;}
public void setPNum(Integer pNum) {this.pNum = pNum;}
public Integer getTypes() {return types;}
public void setTypes(Integer types) {this.types = types;}
}
个人博客评论javaBean创建语句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//个人博客评论
public class Blogpinglun extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//用户
private Integer customerId;
//博客
private Integer blogId;
//评论内容
private String content;
//评论日期
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getBlogId() {return blogId;}
public void setBlogId(Integer blogId) {this.blogId = blogId;}
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 phone;
//年龄
private String age;
//身份证
private String sfz;
//性别
private String sex;
//头像
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 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 getSfz() {return sfz;}
public void setSfz(String sfz) {this.sfz = sfz;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
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 Jd 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 content;
//时间
private String showTime;
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 String getShowTime() {return showTime;}
public void setShowTime(String showTime) {this.showTime = showTime;}
}
轮播图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 title;
//图片
private String pic;
//链接
private String link;
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 getLink() {return link;}
public void setLink(String link) {this.link = link;}
}
留言javaBean创建语句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//留言
public class Liuyan extends BaseBean{
//主键
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//用户
private Integer customerId;
//内容
private String content;
//日期
private Date insertDate;
//回复内容
private String back;
//状态
private String status;
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;}
public String getBack() {return back;}
public void setBack(String back) {this.back = back;}
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 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;
//发布日期
private Date insertDate;
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;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}