基於JavaWeb的健康生活推薦平臺的設計與實現
- 基於JavaWeb的健康生活推薦平臺的設計與實現mysql資料庫建立語句
- 基於JavaWeb的健康生活推薦平臺的設計與實現oracle資料庫建立語句
- 基於JavaWeb的健康生活推薦平臺的設計與實現sqlserver資料庫建立語句
- 基於JavaWeb的健康生活推薦平臺的設計與實現spring springMVC hibernate框架物件(javaBean,pojo)設計
- 基於JavaWeb的健康生活推薦平臺的設計與實現spring springMVC mybatis框架物件(javaBean,pojo)設計
基於JavaWeb的健康生活推薦平臺的設計與實現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_body(
id int primary key auto_increment comment '主鍵',
customerId int comment '使用者',
v1 varchar(100) comment '身高',
v2 varchar(100) comment '體重',
v3 varchar(100) comment 'BMI'
) comment '身體資料';
使用者表建立語句如下:
create table t_customer( id int primary key auto_increment comment '主鍵', username varchar(100) comment '賬號', password varchar(100) comment '密碼', customerName varchar(100) comment '姓名', age varchar(100) comment '年齡', sex varchar(100) comment '性別', phone varchar(100) comment '電話', address varchar(100) comment '地址', idcard varchar(100) comment '身份證', account int comment '我的金額' ) comment '使用者';
動作庫表建立語句如下:
create table t_dzk(
id int primary key auto_increment comment '主鍵',
v1 varchar(100) comment '動作名稱',
v2 varchar(100) comment '動作圖片1',
v3 varchar(100) comment '動作圖片2',
v4 varchar(100) comment '動作圖片3',
v5 varchar(100) comment '內容'
) comment '動作庫';
個人動態表建立語句如下:
create table t_grdt(
id int primary key auto_increment comment '主鍵',
customerId int comment '使用者',
v1 varchar(100) comment '標題',
v2 varchar(100) comment '圖片',
v3 varchar(100) comment '內容'
) comment '個人動態';
活動表建立語句如下:
create table t_hd(
id int primary key auto_increment comment '主鍵',
customerId int comment '使用者',
hdName varchar(100) comment '活動名稱',
v1 varchar(100) comment '活動城市',
v2 varchar(100) comment '活動時間',
v3 varchar(100) comment '活動天數',
v4 varchar(100) comment '活動圖片'
) comment '活動';
活動報名表建立語句如下:
create table t_hdsq(
id int primary key auto_increment comment '主鍵',
customerId int comment '使用者',
hdId int comment '活動',
insertDate datetime comment '報名時間'
) comment '活動報名';
課程表建立語句如下:
create table t_kc(
id int primary key auto_increment 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_wdkc(
id int primary key auto_increment comment '主鍵',
customerId int comment '使用者',
kcId int comment '課程'
) comment '我的課程';
我的計劃表建立語句如下:
create table t_xljh(
id int primary key auto_increment comment '主鍵',
customerId int comment '使用者',
v1 varchar(100) comment '總訓練時長',
v2 varchar(100) comment '訓練次數',
v3 varchar(100) comment '訓練天數',
v4 varchar(100) comment '燃脂量',
v5 datetime comment '記錄日期'
) comment '我的計劃';
作息表表建立語句如下:
create table t_zxb(
id int primary key auto_increment comment '主鍵',
customerId int comment '使用者',
v1 varchar(100) comment '日期',
v2 varchar(100) comment '計劃'
) comment '作息表';
基於JavaWeb的健康生活推薦平臺的設計與實現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_body(
id integer,
customerId int,
v1 varchar(100),
v2 varchar(100),
v3 varchar(100)
);
--身體資料欄位加註釋
comment on column t_body.id is '主鍵';
comment on column t_body.customerId is '使用者';
comment on column t_body.v1 is '身高';
comment on column t_body.v2 is '體重';
comment on column t_body.v3 is 'BMI';
--身體資料表加註釋
comment on table t_body is '身體資料';
使用者表建立語句如下:
create table t_customer(
id integer,
username varchar(100),
password varchar(100),
customerName varchar(100),
age varchar(100),
sex varchar(100),
phone varchar(100),
address varchar(100),
idcard varchar(100),
account int
);
--使用者欄位加註釋
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.age is '年齡';
comment on column t_customer.sex is '性別';
comment on column t_customer.phone is '電話';
comment on column t_customer.address is '地址';
comment on column t_customer.idcard is '身份證';
comment on column t_customer.account is '我的金額';
--使用者表加註釋
comment on table t_customer is '使用者';
動作庫表建立語句如下:
create table t_dzk(
id integer,
v1 varchar(100),
v2 varchar(100),
v3 varchar(100),
v4 varchar(100),
v5 varchar(100)
);
--動作庫欄位加註釋
comment on column t_dzk.id is '主鍵';
comment on column t_dzk.v1 is '動作名稱';
comment on column t_dzk.v2 is '動作圖片1';
comment on column t_dzk.v3 is '動作圖片2';
comment on column t_dzk.v4 is '動作圖片3';
comment on column t_dzk.v5 is '內容';
--動作庫表加註釋
comment on table t_dzk is '動作庫';
個人動態表建立語句如下:
create table t_grdt(
id integer,
customerId int,
v1 varchar(100),
v2 varchar(100),
v3 varchar(100)
);
--個人動態欄位加註釋
comment on column t_grdt.id is '主鍵';
comment on column t_grdt.customerId is '使用者';
comment on column t_grdt.v1 is '標題';
comment on column t_grdt.v2 is '圖片';
comment on column t_grdt.v3 is '內容';
--個人動態表加註釋
comment on table t_grdt is '個人動態';
活動表建立語句如下:
create table t_hd(
id integer,
customerId int,
hdName varchar(100),
v1 varchar(100),
v2 varchar(100),
v3 varchar(100),
v4 varchar(100)
);
--活動欄位加註釋
comment on column t_hd.id is '主鍵';
comment on column t_hd.customerId is '使用者';
comment on column t_hd.hdName is '活動名稱';
comment on column t_hd.v1 is '活動城市';
comment on column t_hd.v2 is '活動時間';
comment on column t_hd.v3 is '活動天數';
comment on column t_hd.v4 is '活動圖片';
--活動表加註釋
comment on table t_hd is '活動';
活動報名表建立語句如下:
create table t_hdsq(
id integer,
customerId int,
hdId int,
insertDate datetime
);
--活動報名欄位加註釋
comment on column t_hdsq.id is '主鍵';
comment on column t_hdsq.customerId is '使用者';
comment on column t_hdsq.hdId is '活動';
comment on column t_hdsq.insertDate is '報名時間';
--活動報名表加註釋
comment on table t_hdsq is '活動報名';
課程表建立語句如下:
create table t_kc(
id integer,
v1 varchar(100),
v2 varchar(100),
v3 varchar(100),
v4 varchar(100),
v5 varchar(100)
);
--課程欄位加註釋
comment on column t_kc.id is '主鍵';
comment on column t_kc.v1 is '課程名稱';
comment on column t_kc.v2 is '訓練天數';
comment on column t_kc.v3 is '詳細內容';
comment on column t_kc.v4 is '圖片';
comment on column t_kc.v5 is '是否推薦';
--課程表加註釋
comment on table t_kc is '課程';
我的課程表建立語句如下:
create table t_wdkc(
id integer,
customerId int,
kcId int
);
--我的課程欄位加註釋
comment on column t_wdkc.id is '主鍵';
comment on column t_wdkc.customerId is '使用者';
comment on column t_wdkc.kcId is '課程';
--我的課程表加註釋
comment on table t_wdkc is '我的課程';
我的計劃表建立語句如下:
create table t_xljh(
id integer,
customerId int,
v1 varchar(100),
v2 varchar(100),
v3 varchar(100),
v4 varchar(100),
v5 datetime
);
--我的計劃欄位加註釋
comment on column t_xljh.id is '主鍵';
comment on column t_xljh.customerId is '使用者';
comment on column t_xljh.v1 is '總訓練時長';
comment on column t_xljh.v2 is '訓練次數';
comment on column t_xljh.v3 is '訓練天數';
comment on column t_xljh.v4 is '燃脂量';
comment on column t_xljh.v5 is '記錄日期';
--我的計劃表加註釋
comment on table t_xljh is '我的計劃';
作息表表建立語句如下:
create table t_zxb(
id integer,
customerId int,
v1 varchar(100),
v2 varchar(100)
);
--作息表字段加註釋
comment on column t_zxb.id is '主鍵';
comment on column t_zxb.customerId is '使用者';
comment on column t_zxb.v1 is '日期';
comment on column t_zxb.v2 is '計劃';
--作息表表加註釋
comment on table t_zxb is '作息表';
oracle特有,對應序列如下:
create sequence s_t_body;
create sequence s_t_customer;
create sequence s_t_dzk;
create sequence s_t_grdt;
create sequence s_t_hd;
create sequence s_t_hdsq;
create sequence s_t_kc;
create sequence s_t_wdkc;
create sequence s_t_xljh;
create sequence s_t_zxb;
基於JavaWeb的健康生活推薦平臺的設計與實現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_body(
id int identity(1,1) primary key not null,--主鍵
customerId int,--使用者
v1 varchar(100),--身高
v2 varchar(100),--體重
v3 varchar(100)--BMI
);
使用者表建立語句如下:
--使用者表註釋
create table t_customer(
id int identity(1,1) primary key not null,--主鍵
username varchar(100),--賬號
password varchar(100),--密碼
customerName varchar(100),--姓名
age varchar(100),--年齡
sex varchar(100),--性別
phone varchar(100),--電話
address varchar(100),--地址
idcard varchar(100),--身份證
account int--我的金額
);
動作庫表建立語句如下:
--動作庫表註釋
create table t_dzk(
id int identity(1,1) primary key not null,--主鍵
v1 varchar(100),--動作名稱
v2 varchar(100),--動作圖片1
v3 varchar(100),--動作圖片2
v4 varchar(100),--動作圖片3
v5 varchar(100)--內容
);
個人動態表建立語句如下:
--個人動態表註釋
create table t_grdt(
id int identity(1,1) primary key not null,--主鍵
customerId int,--使用者
v1 varchar(100),--標題
v2 varchar(100),--圖片
v3 varchar(100)--內容
);
活動表建立語句如下:
--活動表註釋
create table t_hd(
id int identity(1,1) primary key not null,--主鍵
customerId int,--使用者
hdName varchar(100),--活動名稱
v1 varchar(100),--活動城市
v2 varchar(100),--活動時間
v3 varchar(100),--活動天數
v4 varchar(100)--活動圖片
);
活動報名表建立語句如下:
--活動報名表註釋
create table t_hdsq(
id int identity(1,1) primary key not null,--主鍵
customerId int,--使用者
hdId int,--活動
insertDate datetime--報名時間
);
課程表建立語句如下:
--課程表註釋
create table t_kc(
id int identity(1,1) primary key not null,--主鍵
v1 varchar(100),--課程名稱
v2 varchar(100),--訓練天數
v3 varchar(100),--詳細內容
v4 varchar(100),--圖片
v5 varchar(100)--是否推薦
);
我的課程表建立語句如下:
--我的課程表註釋
create table t_wdkc(
id int identity(1,1) primary key not null,--主鍵
customerId int,--使用者
kcId int--課程
);
我的計劃表建立語句如下:
--我的計劃表註釋
create table t_xljh(
id int identity(1,1) primary key not null,--主鍵
customerId int,--使用者
v1 varchar(100),--總訓練時長
v2 varchar(100),--訓練次數
v3 varchar(100),--訓練天數
v4 varchar(100),--燃脂量
v5 datetime--記錄日期
);
作息表表建立語句如下:
--作息表表註釋
create table t_zxb(
id int identity(1,1) primary key not null,--主鍵
customerId int,--使用者
v1 varchar(100),--日期
v2 varchar(100)--計劃
);
基於JavaWeb的健康生活推薦平臺的設計與實現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_body")
public class Body {
//主鍵
@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 v1;
//體重
private String v2;
//BMI
private String v3;
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;}
}
使用者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 age;
//性別
private String sex;
//電話
private String phone;
//地址
private String address;
//身份證
private String idcard;
//我的金額
private Integer account;
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 getAge() {return age;}
public void setAge(String age) {this.age = age;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
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 Integer getAccount() {return account;}
public void setAccount(Integer account) {this.account = account;}
}
動作庫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_dzk")
public class Dzk {
//主鍵
@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 v1;
//動作圖片1
private String v2;
//動作圖片2
private String v3;
//動作圖片3
private String v4;
//內容
private String v5;
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_grdt")
public class Grdt {
//主鍵
@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 v1;
//圖片
private String v2;
//內容
private String v3;
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;}
}
活動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_hd")
public class Hd {
//主鍵
@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 hdName;
//活動城市
private String v1;
//活動時間
private String v2;
//活動天數
private String v3;
//活動圖片
private String v4;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getHdName() {return hdName;}
public void setHdName(String hdName) {this.hdName = hdName;}
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;}
}
活動報名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_hdsq")
public class Hdsq {
//主鍵
@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 hdId;
//報名時間
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getHdId() {return hdId;}
public void setHdId(Integer hdId) {this.hdId = hdId;}
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_kc")
public class Kc {
//主鍵
@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 v1;
//訓練天數
private String v2;
//詳細內容
private String v3;
//圖片
private String v4;
//是否推薦
private String v5;
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_wdkc")
public class Wdkc {
//主鍵
@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 kcId;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getKcId() {return kcId;}
public void setKcId(Integer kcId) {this.kcId = kcId;}
}
我的計劃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_xljh")
public class Xljh {
//主鍵
@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 v1;
//訓練次數
private String v2;
//訓練天數
private String v3;
//燃脂量
private String v4;
//記錄日期
private Date v5;
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 String getV4() {return v4;}
public void setV4(String v4) {this.v4 = v4;}
public Date getV5() {return v5;}
public void setV5(Date 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_zxb")
public class Zxb {
//主鍵
@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 v1;
//計劃
private String v2;
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;}
}
基於JavaWeb的健康生活推薦平臺的設計與實現spring springMVC mybatis框架物件(javaBean,pojo)設計:
身體資料javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//身體資料
public class Body extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//使用者
private Integer customerId;
//身高
private String v1;
//體重
private String v2;
//BMI
private String v3;
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;}
}
使用者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 age;
//性別
private String sex;
//電話
private String phone;
//地址
private String address;
//身份證
private String idcard;
//我的金額
private Integer account;
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 getAge() {return age;}
public void setAge(String age) {this.age = age;}
public String getSex() {return sex;}
public void setSex(String sex) {this.sex = sex;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
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 Integer getAccount() {return account;}
public void setAccount(Integer account) {this.account = account;}
}
動作庫javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//動作庫
public class Dzk extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//動作名稱
private String v1;
//動作圖片1
private String v2;
//動作圖片2
private String v3;
//動作圖片3
private String v4;
//內容
private String v5;
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 Grdt extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//使用者
private Integer customerId;
//標題
private String v1;
//圖片
private String v2;
//內容
private String v3;
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;}
}
活動javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//活動
public class Hd extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//使用者
private Integer customerId;
//活動名稱
private String hdName;
//活動城市
private String v1;
//活動時間
private String v2;
//活動天數
private String v3;
//活動圖片
private String v4;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getHdName() {return hdName;}
public void setHdName(String hdName) {this.hdName = hdName;}
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;}
}
活動報名javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//活動報名
public class Hdsq extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//使用者
private Integer customerId;
//活動
private Integer hdId;
//報名時間
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getHdId() {return hdId;}
public void setHdId(Integer hdId) {this.hdId = hdId;}
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 Kc extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//課程名稱
private String v1;
//訓練天數
private String v2;
//詳細內容
private String v3;
//圖片
private String v4;
//是否推薦
private String v5;
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 Wdkc extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//使用者
private Integer customerId;
//課程
private Integer kcId;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public Integer getKcId() {return kcId;}
public void setKcId(Integer kcId) {this.kcId = kcId;}
}
我的計劃javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//我的計劃
public class Xljh extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//使用者
private Integer customerId;
//總訓練時長
private String v1;
//訓練次數
private String v2;
//訓練天數
private String v3;
//燃脂量
private String v4;
//記錄日期
private Date v5;
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 String getV4() {return v4;}
public void setV4(String v4) {this.v4 = v4;}
public Date getV5() {return v5;}
public void setV5(Date v5) {this.v5 = v5;}
}
作息表javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//作息表
public class Zxb extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//使用者
private Integer customerId;
//日期
private String v1;
//計劃
private String v2;
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;}
}