基於Android手機平臺的“晨起”app設計與實現
阿新 • • 發佈:2019-01-12
**基於Android手機平臺的“晨起”app設計與實現**
(5)語音特別提醒:為使用者提供特定的提醒,如特色鬧鐘,待辦事項提醒等。
(6) 基於Android開發環境完成程式碼的編寫設計,實現手機“晨起”app的開發。(用eclipse)
- 基於Android手機平臺的“晨起”app設計與實現mysql資料庫建立語句
- 基於Android手機平臺的“晨起”app設計與實現oracle資料庫建立語句
- 基於Android手機平臺的“晨起”app設計與實現sqlserver資料庫建立語句
- 基於Android手機平臺的“晨起”app設計與實現spring springMVC hibernate框架物件(javaBean,pojo)設計
- 基於Android手機平臺的“晨起”app設計與實現spring springMVC mybatis框架物件(javaBean,pojo)設計
基於Android手機平臺的“晨起”app設計與實現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_bwl(
id int primary key auto_increment comment '主鍵',
customerId int comment '使用者',
bwlName varchar(100) comment '備忘錄標題',
content varchar(100) comment '內容'
) comment '備忘錄';
使用者所在城市表建立語句如下:
create table t_city(
id int primary key auto_increment comment '主鍵',
customerId int comment '使用者',
cityName varchar(100) comment '使用者所在城市'
) comment '使用者所在城市';
建議表建立語句如下:
create table t_contact(
id int primary key auto_increment comment '主鍵',
customerId int comment '使用者',
phone varchar(100) comment '聯絡方式',
content varchar(100) comment '內容',
insertDate datetime comment '日期'
) comment '建議';
使用者表建立語句如下:
create table t_customer(
id int primary key auto_increment comment '主鍵',
username varchar(100) comment '賬號',
password varchar(100) comment '密碼',
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 ''
) comment '使用者';
代辦事項表建立語句如下:
create table t_dbsx(
id int primary key auto_increment comment '主鍵',
customerId int comment '使用者',
dbsxName varchar(100) comment '標題',
content varchar(100) comment '內容',
showDate datetime comment '代辦事項日期'
) comment '代辦事項';
單位表建立語句如下:
create table t_dw(
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 '消防預案二',
v6 varchar(100) comment '消防預案三'
) comment '單位';
消防監督表建立語句如下:
create table t_xfjd(
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 '消防器材、設施',
v6 varchar(100) comment '消防通道',
v7 varchar(100) comment '消防水源',
v8 varchar(100) comment '消防標誌',
v9 varchar(100) comment '應急照明',
v10 varchar(100) comment '用火用電',
v11 varchar(100) comment '消防重點單位(部位)',
v12 varchar(100) comment '記錄',
v13 varchar(100) comment '易燃易爆化學品',
v14 varchar(100) comment '狀態'
) comment '消防監督';
新聞表建立語句如下:
create table t_xw(
id int primary key auto_increment comment '主鍵',
title varchar(100) comment '標題',
pic varchar(100) comment '圖片',
content varchar(100) comment '內容',
showDate varchar(100) comment '日期'
) comment '新聞';
英語播報表建立語句如下:
create table t_yycl(
id int primary key auto_increment comment '主鍵',
title varchar(100) comment '標題',
content varchar(100) comment '內容',
url varchar(100) comment 'mp3地址',
types varchar(100) comment '型別',
showDate datetime comment '更新日期'
) comment '英語播報';
基於Android手機平臺的“晨起”app設計與實現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_bwl(
id integer,
customerId int,
bwlName varchar(100),
content varchar(100)
);
--備忘錄欄位加註釋
comment on column t_bwl.id is '主鍵';
comment on column t_bwl.customerId is '使用者';
comment on column t_bwl.bwlName is '備忘錄標題';
comment on column t_bwl.content is '內容';
--備忘錄表加註釋
comment on table t_bwl is '備忘錄';
使用者所在城市表建立語句如下:
create table t_city(
id integer,
customerId int,
cityName varchar(100)
);
--使用者所在城市欄位加註釋
comment on column t_city.id is '主鍵';
comment on column t_city.customerId is '使用者';
comment on column t_city.cityName is '使用者所在城市';
--使用者所在城市表加註釋
comment on table t_city is '使用者所在城市';
建議表建立語句如下:
create table t_contact(
id integer,
customerId int,
phone varchar(100),
content varchar(100),
insertDate datetime
);
--建議欄位加註釋
comment on column t_contact.id is '主鍵';
comment on column t_contact.customerId is '使用者';
comment on column t_contact.phone is '聯絡方式';
comment on column t_contact.content is '內容';
comment on column t_contact.insertDate is '日期';
--建議表加註釋
comment on table t_contact is '建議';
使用者表建立語句如下:
create table t_customer(
id integer,
username varchar(100),
password varchar(100),
name varchar(100),
phone varchar(100),
sex varchar(100),
age varchar(100),
address varchar(100),
idcard varchar(100),
insertDate datetime,
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.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 table t_customer is '使用者';
代辦事項表建立語句如下:
create table t_dbsx(
id integer,
customerId int,
dbsxName varchar(100),
content varchar(100),
showDate datetime
);
--代辦事項欄位加註釋
comment on column t_dbsx.id is '主鍵';
comment on column t_dbsx.customerId is '使用者';
comment on column t_dbsx.dbsxName is '標題';
comment on column t_dbsx.content is '內容';
comment on column t_dbsx.showDate is '代辦事項日期';
--代辦事項表加註釋
comment on table t_dbsx is '代辦事項';
單位表建立語句如下:
create table t_dw(
id integer,
v1 varchar(100),
v2 varchar(100),
v3 varchar(100),
v4 varchar(100),
v5 varchar(100),
v6 varchar(100)
);
--單位欄位加註釋
comment on column t_dw.id is '主鍵';
comment on column t_dw.v1 is '基本資訊一';
comment on column t_dw.v2 is '基本資訊二';
comment on column t_dw.v3 is '基本資訊三';
comment on column t_dw.v4 is '消防預案一';
comment on column t_dw.v5 is '消防預案二';
comment on column t_dw.v6 is '消防預案三';
--單位表加註釋
comment on table t_dw is '單位';
消防監督表建立語句如下:
create table t_xfjd(
id integer,
v1 varchar(100),
v2 varchar(100),
v3 varchar(100),
v4 varchar(100),
v5 varchar(100),
v6 varchar(100),
v7 varchar(100),
v8 varchar(100),
v9 varchar(100),
v10 varchar(100),
v11 varchar(100),
v12 varchar(100),
v13 varchar(100),
v14 varchar(100)
);
--消防監督欄位加註釋
comment on column t_xfjd.id is '主鍵';
comment on column t_xfjd.v1 is '檢查時間';
comment on column t_xfjd.v2 is '檢查人';
comment on column t_xfjd.v3 is '受檢單位';
comment on column t_xfjd.v4 is '負責人';
comment on column t_xfjd.v5 is '消防器材、設施';
comment on column t_xfjd.v6 is '消防通道';
comment on column t_xfjd.v7 is '消防水源';
comment on column t_xfjd.v8 is '消防標誌';
comment on column t_xfjd.v9 is '應急照明';
comment on column t_xfjd.v10 is '用火用電';
comment on column t_xfjd.v11 is '消防重點單位(部位)';
comment on column t_xfjd.v12 is '記錄';
comment on column t_xfjd.v13 is '易燃易爆化學品';
comment on column t_xfjd.v14 is '狀態';
--消防監督表加註釋
comment on table t_xfjd is '消防監督';
新聞表建立語句如下:
create table t_xw(
id integer,
title varchar(100),
pic varchar(100),
content varchar(100),
showDate varchar(100)
);
--新聞欄位加註釋
comment on column t_xw.id is '主鍵';
comment on column t_xw.title is '標題';
comment on column t_xw.pic is '圖片';
comment on column t_xw.content is '內容';
comment on column t_xw.showDate is '日期';
--新聞表加註釋
comment on table t_xw is '新聞';
英語播報表建立語句如下:
create table t_yycl(
id integer,
title varchar(100),
content varchar(100),
url varchar(100),
types varchar(100),
showDate datetime
);
--英語播報欄位加註釋
comment on column t_yycl.id is '主鍵';
comment on column t_yycl.title is '標題';
comment on column t_yycl.content is '內容';
comment on column t_yycl.url is 'mp3地址';
comment on column t_yycl.types is '型別';
comment on column t_yycl.showDate is '更新日期';
--英語播報表加註釋
comment on table t_yycl is '英語播報';
oracle特有,對應序列如下:
create sequence s_t_bwl;
create sequence s_t_city;
create sequence s_t_contact;
create sequence s_t_customer;
create sequence s_t_dbsx;
create sequence s_t_dw;
create sequence s_t_xfjd;
create sequence s_t_xw;
create sequence s_t_yycl;
基於Android手機平臺的“晨起”app設計與實現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_bwl(
id int identity(1,1) primary key not null,--主鍵
customerId int,--使用者
bwlName varchar(100),--備忘錄標題
content varchar(100)--內容
);
使用者所在城市表建立語句如下:
--使用者所在城市表註釋
create table t_city(
id int identity(1,1) primary key not null,--主鍵
customerId int,--使用者
cityName varchar(100)--使用者所在城市
);
建議表建立語句如下:
--建議表註釋
create table t_contact(
id int identity(1,1) primary key not null,--主鍵
customerId int,--使用者
phone varchar(100),--聯絡方式
content varchar(100),--內容
insertDate datetime--日期
);
使用者表建立語句如下:
--使用者表註釋
create table t_customer(
id int identity(1,1) primary key not null,--主鍵
username varchar(100),--賬號
password varchar(100),--密碼
name varchar(100),--姓名
phone varchar(100),--手機
sex varchar(100),--性別
age varchar(100),--年齡
address varchar(100),--家庭住址
idcard varchar(100),--身份證
insertDate datetime,--入庫日期
headPic varchar(100)--
);
代辦事項表建立語句如下:
--代辦事項表註釋
create table t_dbsx(
id int identity(1,1) primary key not null,--主鍵
customerId int,--使用者
dbsxName varchar(100),--標題
content varchar(100),--內容
showDate datetime--代辦事項日期
);
單位表建立語句如下:
--單位表註釋
create table t_dw(
id int identity(1,1) primary key not null,--主鍵
v1 varchar(100),--基本資訊一
v2 varchar(100),--基本資訊二
v3 varchar(100),--基本資訊三
v4 varchar(100),--消防預案一
v5 varchar(100),--消防預案二
v6 varchar(100)--消防預案三
);
消防監督表建立語句如下:
--消防監督表註釋
create table t_xfjd(
id int identity(1,1) primary key not null,--主鍵
v1 varchar(100),--檢查時間
v2 varchar(100),--檢查人
v3 varchar(100),--受檢單位
v4 varchar(100),--負責人
v5 varchar(100),--消防器材、設施
v6 varchar(100),--消防通道
v7 varchar(100),--消防水源
v8 varchar(100),--消防標誌
v9 varchar(100),--應急照明
v10 varchar(100),--用火用電
v11 varchar(100),--消防重點單位(部位)
v12 varchar(100),--記錄
v13 varchar(100),--易燃易爆化學品
v14 varchar(100)--狀態
);
新聞表建立語句如下:
--新聞表註釋
create table t_xw(
id int identity(1,1) primary key not null,--主鍵
title varchar(100),--標題
pic varchar(100),--圖片
content varchar(100),--內容
showDate varchar(100)--日期
);
英語播報表建立語句如下:
--英語播報表註釋
create table t_yycl(
id int identity(1,1) primary key not null,--主鍵
title varchar(100),--標題
content varchar(100),--內容
url varchar(100),--mp3地址
types varchar(100),--型別
showDate datetime--更新日期
);
基於Android手機平臺的“晨起”app設計與實現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_bwl")
public class Bwl {
//主鍵
@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 bwlName;
//內容
private String content;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getBwlName() {return bwlName;}
public void setBwlName(String bwlName) {this.bwlName = bwlName;}
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_city")
public class City {
//主鍵
@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 cityName;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getCityName() {return cityName;}
public void setCityName(String cityName) {this.cityName = cityName;}
}
建議javaBean建立語句如下:
package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity
//建議
@Table(name = "t_contact")
public class Contact {
//主鍵
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//使用者
private Integer customerId;
//聯絡方式
private String phone;
//內容
private String content;
//日期
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}
使用者javaBean建立語句如下:
package project.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
@Entity
//使用者
@Table(name = "t_customer")
public class Customer {
//主鍵
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//賬號
private String username;
//密碼
private String password;
//姓名
private String name;
//手機
private String phone;
//性別
private String sex;
//年齡
private String age;
//家庭住址
private String address;
//身份證
private String idcard;
//入庫日期
private Date insertDate;
//
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 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;}
}
代辦事項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_dbsx")
public class Dbsx {
//主鍵
@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 dbsxName;
//內容
private String content;
//代辦事項日期
private Date showDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getDbsxName() {return dbsxName;}
public void setDbsxName(String dbsxName) {this.dbsxName = dbsxName;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
}
單位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_dw")
public class Dw {
//主鍵
@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;
//消防預案三
private String v6;
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;}
public String getV6() {return v6;}
public void setV6(String v6) {this.v6 = v6;}
}
消防監督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_xfjd")
public class Xfjd {
//主鍵
@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;
//消防通道
private String v6;
//消防水源
private String v7;
//消防標誌
private String v8;
//應急照明
private String v9;
//用火用電
private String v10;
//消防重點單位(部位)
private String v11;
//記錄
private String v12;
//易燃易爆化學品
private String v13;
//狀態
private String v14;
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;}
public String getV6() {return v6;}
public void setV6(String v6) {this.v6 = v6;}
public String getV7() {return v7;}
public void setV7(String v7) {this.v7 = v7;}
public String getV8() {return v8;}
public void setV8(String v8) {this.v8 = v8;}
public String getV9() {return v9;}
public void setV9(String v9) {this.v9 = v9;}
public String getV10() {return v10;}
public void setV10(String v10) {this.v10 = v10;}
public String getV11() {return v11;}
public void setV11(String v11) {this.v11 = v11;}
public String getV12() {return v12;}
public void setV12(String v12) {this.v12 = v12;}
public String getV13() {return v13;}
public void setV13(String v13) {this.v13 = v13;}
public String getV14() {return v14;}
public void setV14(String v14) {this.v14 = v14;}
}
新聞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_xw")
public class Xw {
//主鍵
@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 showDate;
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 getShowDate() {return showDate;}
public void setShowDate(String showDate) {this.showDate = showDate;}
}
英語播報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_yycl")
public class Yycl {
//主鍵
@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;
//mp3地址
private String url;
//型別
private String types;
//更新日期
private Date showDate;
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 getUrl() {return url;}
public void setUrl(String url) {this.url = url;}
public String getTypes() {return types;}
public void setTypes(String types) {this.types = types;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
}
基於Android手機平臺的“晨起”app設計與實現spring springMVC mybatis框架物件(javaBean,pojo)設計:
備忘錄javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//備忘錄
public class Bwl extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//使用者
private Integer customerId;
//備忘錄標題
private String bwlName;
//內容
private String content;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getBwlName() {return bwlName;}
public void setBwlName(String bwlName) {this.bwlName = bwlName;}
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 City extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//使用者
private Integer customerId;
//使用者所在城市
private String cityName;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getCityName() {return cityName;}
public void setCityName(String cityName) {this.cityName = cityName;}
}
建議javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//建議
public class Contact extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//使用者
private Integer customerId;
//聯絡方式
private String phone;
//內容
private String content;
//日期
private Date insertDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getPhone() {return phone;}
public void setPhone(String phone) {this.phone = phone;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public Date getInsertDate() {return insertDate;}
public void setInsertDate(Date insertDate) {this.insertDate = insertDate;}
}
使用者javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//使用者
public class Customer extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//賬號
private String username;
//密碼
private String password;
//姓名
private String name;
//手機
private String phone;
//性別
private String sex;
//年齡
private String age;
//家庭住址
private String address;
//身份證
private String idcard;
//入庫日期
private Date insertDate;
//
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 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;}
}
代辦事項javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//代辦事項
public class Dbsx extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//使用者
private Integer customerId;
//標題
private String dbsxName;
//內容
private String content;
//代辦事項日期
private Date showDate;
public Integer getCustomerId() {return customerId;}
public void setCustomerId(Integer customerId) {this.customerId = customerId;}
public String getDbsxName() {return dbsxName;}
public void setDbsxName(String dbsxName) {this.dbsxName = dbsxName;}
public String getContent() {return content;}
public void setContent(String content) {this.content = content;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
}
單位javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//單位
public class Dw 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;
//消防預案三
private String v6;
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;}
public String getV6() {return v6;}
public void setV6(String v6) {this.v6 = v6;}
}
消防監督javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//消防監督
public class Xfjd 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;
//消防通道
private String v6;
//消防水源
private String v7;
//消防標誌
private String v8;
//應急照明
private String v9;
//用火用電
private String v10;
//消防重點單位(部位)
private String v11;
//記錄
private String v12;
//易燃易爆化學品
private String v13;
//狀態
private String v14;
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;}
public String getV6() {return v6;}
public void setV6(String v6) {this.v6 = v6;}
public String getV7() {return v7;}
public void setV7(String v7) {this.v7 = v7;}
public String getV8() {return v8;}
public void setV8(String v8) {this.v8 = v8;}
public String getV9() {return v9;}
public void setV9(String v9) {this.v9 = v9;}
public String getV10() {return v10;}
public void setV10(String v10) {this.v10 = v10;}
public String getV11() {return v11;}
public void setV11(String v11) {this.v11 = v11;}
public String getV12() {return v12;}
public void setV12(String v12) {this.v12 = v12;}
public String getV13() {return v13;}
public void setV13(String v13) {this.v13 = v13;}
public String getV14() {return v14;}
public void setV14(String v14) {this.v14 = v14;}
}
新聞javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//新聞
public class Xw 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 showDate;
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 getShowDate() {return showDate;}
public void setShowDate(String showDate) {this.showDate = showDate;}
}
英語播報javaBean建立語句如下:
package project.model;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
//英語播報
public class Yycl extends BaseBean{
//主鍵
private Integer id;
public Integer getId() {return id;}
public void setId(Integer id) {this.id = id;}
//標題
private String title;
//內容
private String content;
//mp3地址
private String url;
//型別
private String types;
//更新日期
private Date showDate;
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 getUrl() {return url;}
public void setUrl(String url) {this.url = url;}
public String getTypes() {return types;}
public void setTypes(String types) {this.types = types;}
public Date getShowDate() {return showDate;}
public void setShowDate(Date showDate) {this.showDate = showDate;}
}