1. 程式人生 > >基於Javaee的美護品測評網站

基於Javaee的美護品測評網站

**基於Javaee的美護品測評網站** 基於Javaee的美護品測評網站登入註冊介面

基於Javaee的美護品測評網站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_cp(
	id int primary key auto_increment comment '主鍵',
	title varchar(100) comment '產品名稱',
	pic varchar(100) comment '圖片',
	content varchar(100) comment '產品說明'
) comment '產品';

使用者表建立語句如下:


create table t_customer(
	id int primary key auto_increment comment '主鍵',
	username varchar(100) comment '賬號',
	password varchar(100) comment '密碼',
	name varchar(100) comment '姓名',
	phone varchar(100) comment '手機',
	sex varchar(100) comment '性別',
	age varchar(100) comment '年齡',
	address varchar(100) comment '家庭住址',
	idcard varchar(100) comment '身份證',
	insertDate datetime comment '入庫日期',
	headPic varchar(100) comment '頭像',
	level varchar(100) comment '層級',
	isft varchar(100) comment '發帖許可權',
	ispl varchar(100) comment '評論許可權',
	mb1 varchar(100) comment '密保1',
	mb2 varchar(100) comment '密保2',
	mb3 varchar(100) comment '密保3'
) comment '使用者';

點贊表建立語句如下:


create table t_dz(
	id int primary key auto_increment comment '主鍵',
	customerId int comment '使用者',
	wdxxId int comment '資訊',
	insertDate datetime comment '日期'
) comment '點贊';

膚質檢測表建立語句如下:


create table t_fzjc(
	id int primary key auto_increment comment '主鍵',
	content varchar(100) comment '內容'
) comment '膚質檢測';

問題表建立語句如下:


create table t_huida(
	id int primary key auto_increment comment '主鍵',
	customerId int comment '使用者',
	v1 varchar(100) comment '問題1',
	v2 varchar(100) comment '問題2',
	v3 varchar(100) comment '問題3',
	insertDate datetime comment '時間'
) comment '問題';

美食健康表建立語句如下:


create table t_jk(
	id int primary key auto_increment comment '主鍵',
	types varchar(100) comment '型別',
	v1 varchar(100) comment '營養物質',
	v2 varchar(100) comment '建議'
) comment '美食健康';

論壇說明表建立語句如下:


create table t_ltsm(
	id int primary key auto_increment comment '主鍵',
	title varchar(100) comment '說明'
) comment '論壇說明';

敏感詞表建立語句如下:


create table t_mgc(
	id int primary key auto_increment comment '主鍵',
	mgc varchar(100) comment '敏感詞'
) comment '敏感詞';

美食表建立語句如下:


create table t_ms(
	id int primary key auto_increment comment '主鍵',
	types varchar(100) comment '分類',
	msName varchar(100) comment '名稱',
	content varchar(100) comment '內容',
	msPic varchar(100) comment ''
) comment '美食';

評論表建立語句如下:


create table t_mspl(
	id int primary key auto_increment comment '主鍵',
	msId int comment '',
	customerId int comment '使用者',
	content varchar(100) comment '內容',
	insertDate datetime 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_sc(
	id int primary key auto_increment comment '主鍵',
	customerId int comment '使用者',
	wdxxId int 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 '',
	ship varchar(100) comment '',
	cpmc varchar(100) comment '產品名稱',
	cf varchar(100) comment '成分'
) comment '我的訊息';

基於Javaee的美護品測評網站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_cp(
	id integer,
	title varchar(100),
	pic varchar(100),
	content varchar(100)
);
--產品欄位加註釋
comment on column t_cp.id is '主鍵';
comment on column t_cp.title is '產品名稱';
comment on column t_cp.pic is '圖片';
comment on column t_cp.content is '產品說明';
--產品表加註釋
comment on table t_cp is '產品';

使用者表建立語句如下:


create table t_customer(
	id integer,
	username varchar(100),
	password varchar(100),
	name varchar(100),
	phone varchar(100),
	sex varchar(100),
	age varchar(100),
	address varchar(100),
	idcard varchar(100),
	insertDate datetime,
	headPic varchar(100),
	level varchar(100),
	isft varchar(100),
	ispl varchar(100),
	mb1 varchar(100),
	mb2 varchar(100),
	mb3 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.name is '姓名';
comment on column t_customer.phone is '手機';
comment on column t_customer.sex is '性別';
comment on column t_customer.age is '年齡';
comment on column t_customer.address is '家庭住址';
comment on column t_customer.idcard is '身份證';
comment on column t_customer.insertDate is '入庫日期';
comment on column t_customer.headPic is '頭像';
comment on column t_customer.level is '層級';
comment on column t_customer.isft is '發帖許可權';
comment on column t_customer.ispl is '評論許可權';
comment on column t_customer.mb1 is '密保1';
comment on column t_customer.mb2 is '密保2';
comment on column t_customer.mb3 is '密保3';
--使用者表加註釋
comment on table t_customer is '使用者';

點贊表建立語句如下:


create table t_dz(
	id integer,
	customerId int,
	wdxxId int,
	insertDate datetime
);
--點贊欄位加註釋
comment on column t_dz.id is '主鍵';
comment on column t_dz.customerId is '使用者';
comment on column t_dz.wdxxId is '資訊';
comment on column t_dz.insertDate is '日期';
--點贊表加註釋
comment on table t_dz is '點贊';

膚質檢測表建立語句如下:


create table t_fzjc(
	id integer,
	content varchar(100)
);
--膚質檢測欄位加註釋
comment on column t_fzjc.id is '主鍵';
comment on column t_fzjc.content is '內容';
--膚質檢測表加註釋
comment on table t_fzjc is '膚質檢測';

問題表建立語句如下:


create table t_huida(
	id integer,
	customerId int,
	v1 varchar(100),
	v2 varchar(100),
	v3 varchar(100),
	insertDate datetime
);
--問題欄位加註釋
comment on column t_huida.id is '主鍵';
comment on column t_huida.customerId is '使用者';
comment on column t_huida.v1 is '問題1';
comment on column t_huida.v2 is '問題2';
comment on column t_huida.v3 is '問題3';
comment on column t_huida.insertDate is '時間';
--問題表加註釋
comment on table t_huida is '問題';

美食健康表建立語句如下:


create table t_jk(
	id integer,
	types varchar(100),
	v1 varchar(100),
	v2 varchar(100)
);
--美食健康欄位加註釋
comment on column t_jk.id is '主鍵';
comment on column t_jk.types is '型別';
comment on column t_jk.v1 is '營養物質';
comment on column t_jk.v2 is '建議';
--美食健康表加註釋
comment on table t_jk is '美食健康';

論壇說明表建立語句如下:


create table t_ltsm(
	id integer,
	title varchar(100)
);
--論壇說明欄位加註釋
comment on column t_ltsm.id is '主鍵';
comment on column t_ltsm.title is '說明';
--論壇說明表加註釋
comment on table t_ltsm is '論壇說明';

敏感詞表建立語句如下:


create table t_mgc(
	id integer,
	mgc varchar(100)
);
--敏感詞欄位加註釋
comment on column t_mgc.id is '主鍵';
comment on column t_mgc.mgc is '敏感詞';
--敏感詞表加註釋
comment on table t_mgc is '敏感詞';

美食表建立語句如下:


create table t_ms(
	id integer,
	types varchar(100),
	msName varchar(100),
	content varchar(100),
	msPic varchar(100)
);
--美食欄位加註釋
comment on column t_ms.id is '主鍵';
comment on column t_ms.types is '分類';
comment on column t_ms.msName is '名稱';
comment on column t_ms.content is '內容';
comment on column t_ms.msPic is '';
--美食表加註釋
comment on table t_ms is '美食';

評論表建立語句如下:


create table t_mspl(
	id integer,
	msId int,
	customerId int,
	content varchar(100),
	insertDate datetime
);
--評論欄位加註釋
comment on column t_mspl.id is '主鍵';
comment on column t_mspl.msId is '';
comment on column t_mspl.customerId is '使用者';
comment on column t_mspl.content is '內容';
comment on column t_mspl.insertDate is '日期';
--評論表加註釋
comment on table t_mspl 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_sc(
	id integer,
	customerId int,
	wdxxId int
);
--欄位加註釋
comment on column t_sc.id is '主鍵';
comment on column t_sc.customerId is '使用者';
comment on column t_sc.wdxxId is '文章';
--表加註釋
comment on table t_sc 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,
	ship varchar(100),
	cpmc varchar(100),
	cf varchar(100)
);
--我的訊息欄位加註釋
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 column t_wdxx.ship is '';
comment on column t_wdxx.cpmc is '產品名稱';
comment on column t_wdxx.cf is '成分';
--我的訊息表加註釋
comment on table t_wdxx is '我的訊息';

oracle特有,對應序列如下:


create sequence s_t_bk;
create sequence s_t_cp;
create sequence s_t_customer;
create sequence s_t_dz;
create sequence s_t_fzjc;
create sequence s_t_huida;
create sequence s_t_jk;
create sequence s_t_ltsm;
create sequence s_t_mgc;
create sequence s_t_ms;
create sequence s_t_mspl;
create sequence s_t_pinglun;
create sequence s_t_sc;
create sequence s_t_wdxx;

基於Javaee的美護品測評網站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_cp(
	id int identity(1,1) primary key not null,--主鍵
	title varchar(100),--產品名稱
	pic varchar(100),--圖片
	content varchar(100)--產品說明
);

使用者表建立語句如下:


--使用者表註釋
create table t_customer(
	id int identity(1,1) primary key not null,--主鍵
	username varchar(100),--賬號
	password varchar(100),--密碼
	name varchar(100),--姓名
	phone varchar(100),--手機
	sex varchar(100),--性別
	age varchar(100),--年齡
	address varchar(100),--家庭住址
	idcard varchar(100),--身份證
	insertDate datetime,--入庫日期
	headPic varchar(100),--頭像
	level varchar(100),--層級
	isft varchar(100),--發帖許可權
	ispl varchar(100),--評論許可權
	mb1 varchar(100),--密保1
	mb2 varchar(100),--密保2
	mb3 varchar(100)--密保3
);

點贊表建立語句如下:


--點贊表註釋
create table t_dz(
	id int identity(1,1) primary key not null,--主鍵
	customerId int,--使用者
	wdxxId int,--資訊
	insertDate datetime--日期
);

膚質檢測表建立語句如下:


--膚質檢測表註釋
create table t_fzjc(
	id int identity(1,1) primary key not null,--主鍵
	content varchar(100)--內容
);

問題表建立語句如下:


--問題表註釋
create table t_huida(
	id int identity(1,1) primary key not null,--主鍵
	customerId int,--使用者
	v1 varchar(100),--問題1
	v2 varchar(100),--問題2
	v3 varchar(100),--問題3
	insertDate datetime--時間
);

美食健康表建立語句如下:


--美食健康表註釋
create table t_jk(
	id int identity(1,1) primary key not null,--主鍵
	types varchar(100),--型別
	v1 varchar(100),--營養物質
	v2 varchar(100)--建議
);

論壇說明表建立語句如下:


--論壇說明表註釋
create table t_ltsm(
	id int identity(1,1) primary key not null,--主鍵
	title varchar(100)--說明
);

敏感詞表建立語句如下:


--敏感詞表註釋
create table t_mgc(
	id int identity(1,1) primary key not null,--主鍵
	mgc varchar(100)--敏感詞
);

美食表建立語句如下:


--美食表註釋
create table t_ms(
	id int identity(1,1) primary key not null,--主鍵
	types varchar(100),--分類
	msName varchar(100),--名稱
	content varchar(100),--內容
	msPic varchar(100)--
);

評論表建立語句如下:


--評論表註釋
create table t_mspl(
	id int identity(1,1) primary key not null,--主鍵
	msId int,--
	customerId int,--使用者
	content varchar(100),--內容
	insertDate datetime--日期
);

評論表建立語句如下:


--評論表註釋
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_sc(
	id int identity(1,1) primary key not null,--主鍵
	customerId int,--使用者
	wdxxId int--文章
);

我的訊息表建立語句如下:


--我的訊息表註釋
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,--
	ship varchar(100),--
	cpmc varchar(100),--產品名稱
	cf varchar(100)--成分
);

基於Javaee的美護品測評網站登入後主頁

基於Javaee的美護品測評網站spring springMVC hibernate框架物件(javaBean,pojo)設計:

前端: 1、使用者管理:註冊、登入、忘記密碼; 2、個人中心:個人資訊及賬號管理,同膚質好物推薦(分類推薦),收藏夾,關注,意見反饋; 3、查詢:按產品名查詢,按成分查詢,查詢相關心得分享、文章; 4、膚質檢測:做四套檢測試卷通過結果確定膚質型別,分別是乾性/油性面板測試、敏感/耐受面板測試、色素/非色素面板測試、皺紋/緊緻面板測試; 5、產品使用心得及相關文章發表、分享、點贊、評論; 6、首頁精選推送:點贊最多的文章、心得分享推送,根據瀏覽喜好來推送內容; 7、網站活動:首頁推送網站最新活動; 8、產品分類檢視:分為潔面、化妝水、精華、乳霜、眼霜、面膜、防晒、洗護這幾大類。 後端: 1、管理員:註冊、登入、退出、修改密碼; 2、資訊管理:資訊釋出、修改、刪除; 3、資料庫建立與管理 3、伺服器:租借伺服器,配置伺服器

分類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_cp")
public class Cp {
//主鍵
@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;
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;}
}

使用者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 name;
//手機
private String phone;
//性別
private String sex;
//年齡
private String age;
//家庭住址
private String address;
//身份證
private String idcard;
//入庫日期
private Date insertDate;
//頭像
private String headPic;
//層級
private String level;
//發帖許可權
private String isft;
//評論許可權
private String ispl;
//密保1
private String mb1;
//密保2
private String mb2;
//密保3
private String mb3;
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 getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
public String getIdcard() {return idcard;}
public void setIdcard(String idcard) {this.idcard = idcard;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getHeadPic() {return headPic;}
public void setHeadPic(String headPic) {this.headPic = headPic;}
public String getLevel() {return level;}
public void setLevel(String level) {this.level = level;}
public String getIsft() {return isft;}
public void setIsft(String isft) {this.isft = isft;}
public String getIspl() {return ispl;}
public void setIspl(String ispl) {this.ispl = ispl;}
public String getMb1() {return mb1;}
public void setMb1(String mb1) {this.mb1 = mb1;}
public String getMb2() {return mb2;}
public void setMb2(String mb2) {this.mb2 = mb2;}
public String getMb3() {return mb3;}
public void setMb3(String mb3) {this.mb3 = mb3;}
}

點贊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_dz")
public class Dz {
//主鍵
@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 wdxxId;
//日期
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getWdxxId() {return wdxxId;}
public void setWdxxId(Integer wdxxId) {this.wdxxId = wdxxId;}
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_fzjc")
public class Fzjc {
//主鍵
@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 content;
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
}

問題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_huida")
public class Huida {
//主鍵
@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;
//問題1
private String v1;
//問題2
private String v2;
//問題3
private String v3;
//時間
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
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 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_jk")
public class Jk {
//主鍵
@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 types;
//營養物質
private String v1;
//建議
private String v2;
public String getTypes() {return types;}
public void setTypes(String types) {this.types = types;}
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;}
}

論壇說明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_ltsm")
public class Ltsm {
//主鍵
@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;
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_mgc")
public class Mgc {
//主鍵
@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 mgc;
public String getMgc() {return mgc;}
public void setMgc(String mgc) {this.mgc = mgc;}
}

美食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_ms")
public class Ms {
//主鍵
@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 types;
//名稱
private String msName;
//內容
private String content;
//
private String msPic;
public String getTypes() {return types;}
public void setTypes(String types) {this.types = types;}
public String getMsName() {return msName;}
public void setMsName(String msName) {this.msName = msName;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public String getMsPic() {return msPic;}
public void setMsPic(String msPic) {this.msPic = msPic;}
}

評論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_mspl")
public class Mspl {
//主鍵
@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 msId;
//使用者
private Integer customerId;
//內容
private String content;
//日期
private Date insertDate;
public Integer getMsId() {return msId;}
public void setMsId(Integer msId) {this.msId = msId;}
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_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_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 wdxxId;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getWdxxId() {return wdxxId;}
public void setWdxxId(Integer wdxxId) {this.wdxxId = wdxxId;}
}

我的訊息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;
//
private String ship;
//產品名稱
private String cpmc;
//成分
private String cf;
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;}
public String getShip() {return ship;}
public void setShip(String ship) {this.ship = ship;}
public String getCpmc() {return cpmc;}
public void setCpmc(String cpmc) {this.cpmc = cpmc;}
public String getCf() {return cf;}
public void setCf(String cf) {this.cf = cf;}
}

基於Javaee的美護品測評網站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 Cp  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;
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;}
}

使用者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 name;
//手機
private String phone;
//性別
private String sex;
//年齡
private String age;
//家庭住址
private String address;
//身份證
private String idcard;
//入庫日期
private Date insertDate;
//頭像
private String headPic;
//層級
private String level;
//發帖許可權
private String isft;
//評論許可權
private String ispl;
//密保1
private String mb1;
//密保2
private String mb2;
//密保3
private String mb3;
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 getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getAge() {return age;}
public void setAge(String age) {this.age = age;}
public String getAddress() {return address;}
public void setAddress(String address) {this.address = address;}
public String getIdcard() {return idcard;}
public void setIdcard(String idcard) {this.idcard = idcard;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
public String getHeadPic() {return headPic;}
public void setHeadPic(String headPic) {this.headPic = headPic;}
public String getLevel() {return level;}
public void setLevel(String level) {this.level = level;}
public String getIsft() {return isft;}
public void setIsft(String isft) {this.isft = isft;}
public String getIspl() {return ispl;}
public void setIspl(String ispl) {this.ispl = ispl;}
public String getMb1() {return mb1;}
public void setMb1(String mb1) {this.mb1 = mb1;}
public String getMb2() {return mb2;}
public void setMb2(String mb2) {this.mb2 = mb2;}
public String getMb3() {return mb3;}
public void setMb3(String mb3) {this.mb3 = mb3;}
}

點贊javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//點贊
public class Dz  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//使用者
private Integer customerId;
//資訊
private Integer wdxxId;
//日期
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getWdxxId() {return wdxxId;}
public void setWdxxId(Integer wdxxId) {this.wdxxId = wdxxId;}
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 Fzjc  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//內容
private String content;
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
}

問題javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//問題
public class Huida  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//使用者
private Integer customerId;
//問題1
private String v1;
//問題2
private String v2;
//問題3
private String v3;
//時間
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
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 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 Jk  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//型別
private String types;
//營養物質
private String v1;
//建議
private String v2;
public String getTypes() {return types;}
public void setTypes(String types) {this.types = types;}
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;}
}

論壇說明javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//論壇說明
public class Ltsm  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//說明
private String title;
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 Mgc  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//敏感詞
private String mgc;
public String getMgc() {return mgc;}
public void setMgc(String mgc) {this.mgc = mgc;}
}

美食javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//美食
public class Ms  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//分類
private String types;
//名稱
private String msName;
//內容
private String content;
//
private String msPic;
public String getTypes() {return types;}
public void setTypes(String types) {this.types = types;}
public String getMsName() {return msName;}
public void setMsName(String msName) {this.msName = msName;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public String getMsPic() {return msPic;}
public void setMsPic(String msPic) {this.msPic = msPic;}
}

評論javaBean建立語句如下:


package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//評論
public class Mspl  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//
private Integer msId;
//使用者
private Integer customerId;
//內容
private String content;
//日期
private Date insertDate;
public Integer getMsId() {return msId;}
public void setMsId(Integer msId) {this.msId = msId;}
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 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 Sc  extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//使用者
private Integer customerId;
//文章
private Integer wdxxId;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getWdxxId() {return wdxxId;}
public void setWdxxId(Integer wdxxId) {this.wdxxId = wdxxId;}
}

我的訊息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;
//
private String ship;
//產品名稱
private String cpmc;
//成分
private String cf;
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;}
public String getShip() {return ship;}
public void setShip(String ship) {this.ship = ship;}
public String getCpmc() {return cpmc;}
public void setCpmc(String cpmc) {this.cpmc = cpmc;}
public String getCf() {return cf;}
public void setCf(String cf) {this.cf = cf;}
}