实体类解析

区域类设计

package com.hbut.o2o.entity;import java.util.Date;/*** 区域信息* @author HenryLei**/
public class Area {// 主键IDprivate Integer areaId;// 名称private String areaName;// 权重,越大越排前显示private Integer priority;// 创建时间private Date createTime;// 更新时间private Date lastEditTime;public Integer getAreaId() {return areaId;}public void setAreaId(Integer areaId) {this.areaId = areaId;}public String getAreaName() {return areaName;}public void setAreaName(String areaName) {this.areaName = areaName;}public Integer getPriority() {return priority;}public void setPriority(Integer priority) {this.priority = priority;}public Date getCreateTime() {return createTime;}public void setCreateTime(Date createTime) {this.createTime = createTime;}public Date getLastEditTime() {return lastEditTime;}public void setLastEditTime(Date lastEditTime) {this.lastEditTime = lastEditTime;}}

用户类设计

package com.hbut.o2o.entity;import java.util.Date;/*** 个人信息实体类* * @author HenryLei**/
public class PersonInfo {// 主键IDprivate Long userId;// 用户名称private String name;// 用户头像private String profileImg;// 用户邮箱private String email;// 用户性别private String gender;// 可用状态:0、被禁止 1、可用private Integer enableStatus;// 1.顾客 2.店家 3.超级管理员private Integer userType;// 创建时间private Date createTime;// 最近一次的更新时间private Date lastEditTime;public Long getUserId() {return userId;}public void setUserId(Long userId) {this.userId = userId;}public String getName() {return name;}public void setName(String name) {this.name = name;}public String getProfileImg() {return profileImg;}public void setProfileImg(String profileImg) {this.profileImg = profileImg;}public String getEmail() {return email;}public void setEmail(String email) {this.email = email;}public String getGender() {return gender;}public void setGender(String gender) {this.gender = gender;}public Integer getEnableStatus() {return enableStatus;}public void setEnableStatus(Integer enableStatus) {this.enableStatus = enableStatus;}public Integer getUserType() {return userType;}public void setUserType(Integer userType) {this.userType = userType;}public Date getCreateTime() {return createTime;}public void setCreateTime(Date createTime) {this.createTime = createTime;}public Date getLastEditTime() {return lastEditTime;}public void setLastEditTime(Date lastEditTime) {this.lastEditTime = lastEditTime;}}

本地账号类设计

package com.hbut.o2o.entity;import java.util.Date;/*** 本地验证实体类,主要用来做帐号密码的登录* * @author HenryLei**/
public class LocalAuth {// 主键IDprivate Long localAuthId;// 帐号private String username;// 密码private String password;// 创建时间private Date createTime;// 最近一次的更新时间private Date lastEditTime;// 个人信息,关系为一一对应private PersonInfo personInfo;public Long getLocalAuthId() {return localAuthId;}public void setLocalAuthId(Long localAuthId) {this.localAuthId = localAuthId;}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 Date getCreateTime() {return createTime;}public void setCreateTime(Date createTime) {this.createTime = createTime;}public Date getLastEditTime() {return lastEditTime;}public void setLastEditTime(Date lastEditTime) {this.lastEditTime = lastEditTime;}public PersonInfo getPersonInfo() {return personInfo;}public void setPersonInfo(PersonInfo personInfo) {this.personInfo = personInfo;}}

头条类设计

package com.hbut.o2o.entity;import java.util.Date;/*** 头条实体类* * @author HenryLei**/
public class HeadLine {// 主键IDprivate Long lineId;// 头条名字private String lineName;// 头条链接,点击头条会进入相应链接中private String lineLink;// 头条图片private String lineImg;// 权重,越大越排前显示private Integer priority;// 0.不可用 1.可用private Integer enableStatus;// 创建时间private Date createTime;// 最近一次的更新时间private Date lastEditTime;public Long getLineId() {return lineId;}public void setLineId(Long lineId) {this.lineId = lineId;}public String getLineName() {return lineName;}public void setLineName(String lineName) {this.lineName = lineName;}public String getLineLink() {return lineLink;}public void setLineLink(String lineLink) {this.lineLink = lineLink;}public String getLineImg() {return lineImg;}public void setLineImg(String lineImg) {this.lineImg = lineImg;}public Integer getPriority() {return priority;}public void setPriority(Integer priority) {this.priority = priority;}public Integer getEnableStatus() {return enableStatus;}public void setEnableStatus(Integer enableStatus) {this.enableStatus = enableStatus;}public Date getCreateTime() {return createTime;}public void setCreateTime(Date createTime) {this.createTime = createTime;}public Date getLastEditTime() {return lastEditTime;}public void setLastEditTime(Date lastEditTime) {this.lastEditTime = lastEditTime;}}

店铺类别类设计

package com.hbut.o2o.entity;import java.util.Date;/*** 店铺类别实体类* * @author HenryLei**/
public class ShopCategory {// 主键IDprivate Long shopCategoryId;// 类别名private String shopCategoryName;// 类别描述private String shopCategoryDesc;// 类别图片地址(针对一级类别)private String shopCategoryImg;// 权重,越大越排前显示private Integer priority;// 创建时间private Date createTime;// 最近的更新时间private Date lastEditTime;// 父类别private ShopCategory parent;public Long getShopCategoryId() {return shopCategoryId;}public void setShopCategoryId(Long shopCategoryId) {this.shopCategoryId = shopCategoryId;}public String getShopCategoryName() {return shopCategoryName;}public void setShopCategoryName(String shopCategoryName) {this.shopCategoryName = shopCategoryName;}public String getShopCategoryDesc() {return shopCategoryDesc;}public void setShopCategoryDesc(String shopCategoryDesc) {this.shopCategoryDesc = shopCategoryDesc;}public String getShopCategoryImg() {return shopCategoryImg;}public void setShopCategoryImg(String shopCategoryImg) {this.shopCategoryImg = shopCategoryImg;}public Integer getPriority() {return priority;}public void setPriority(Integer priority) {this.priority = priority;}public Date getCreateTime() {return createTime;}public void setCreateTime(Date createTime) {this.createTime = createTime;}public Date getLastEditTime() {return lastEditTime;}public void setLastEditTime(Date lastEditTime) {this.lastEditTime = lastEditTime;}public ShopCategory getParent() {return parent;}public void setParent(ShopCategory parent) {this.parent = parent;}
}

店铺类设计

package com.hbut.o2o.entity;import java.util.Date;/*** 店铺实体类* * @author HenryLei**/
public class Shop {// 主键IDprivate Long shopId;// 店铺名称private String shopName;// 店铺简介private String shopDesc;// 店铺地址private String shopAddr;// 店铺号码private String phone;// 店铺门面图片地址private String shopImg;// 权重,越大越排前显示private Integer priority;// 创建时间private Date createTime;// 最近一次更新的时间private Date lastEditTime;// -1.不可用 0.审核中 1.可用private Integer enableStatus;// 超级管理员给店家的提醒,包括为什么审核不通过等private String advice;// 店铺所属区域private Area area;// 店铺是属于哪个店家的private PersonInfo owner;// 店铺类别private ShopCategory shopCategory;public Long getShopId() {return shopId;}public void setShopId(Long shopId) {this.shopId = shopId;}public String getShopName() {return shopName;}public void setShopName(String shopName) {this.shopName = shopName;}public String getShopDesc() {return shopDesc;}public void setShopDesc(String shopDesc) {this.shopDesc = shopDesc;}public String getShopAddr() {return shopAddr;}public void setShopAddr(String shopAddr) {this.shopAddr = shopAddr;}public String getPhone() {return phone;}public void setPhone(String phone) {this.phone = phone;}public String getShopImg() {return shopImg;}public void setShopImg(String shopImg) {this.shopImg = shopImg;}public Integer getPriority() {return priority;}public void setPriority(Integer priority) {this.priority = priority;}public Date getCreateTime() {return createTime;}public void setCreateTime(Date createTime) {this.createTime = createTime;}public Date getLastEditTime() {return lastEditTime;}public void setLastEditTime(Date lastEditTime) {this.lastEditTime = lastEditTime;}public Integer getEnableStatus() {return enableStatus;}public void setEnableStatus(Integer enableStatus) {this.enableStatus = enableStatus;}public String getAdvice() {return advice;}public void setAdvice(String advice) {this.advice = advice;}public Area getArea() {return area;}public void setArea(Area area) {this.area = area;}public PersonInfo getOwner() {return owner;}public void setOwner(PersonInfo owner) {this.owner = owner;}public ShopCategory getShopCategory() {return shopCategory;}public void setShopCategory(ShopCategory shopCategory) {this.shopCategory = shopCategory;}}

商品类别类设计

package com.hbut.o2o.entity;import java.util.Date;/*** 商品类别实体类* * @author HenryLei**/
public class ProductCategory {// 主键IDprivate Long productCategoryId;// 该类别是属于哪个店铺的private Long shopId;// 类别名private String productCategoryName;// 权重,越大越排前显示private Integer priority;// 创建时间private Date createTime;public Long getProductCategoryId() {return productCategoryId;}public void setProductCategoryId(Long productCategoryId) {this.productCategoryId = productCategoryId;}public Long getShopId() {return shopId;}public void setShopId(Long shopId) {this.shopId = shopId;}public String getProductCategoryName() {return productCategoryName;}public void setProductCategoryName(String productCategoryName) {this.productCategoryName = productCategoryName;}public Integer getPriority() {return priority;}public void setPriority(Integer priority) {this.priority = priority;}public Date getCreateTime() {return createTime;}public void setCreateTime(Date createTime) {this.createTime = createTime;}}

商品详情图片类设计

package com.hbut.o2o.entity;import java.util.Date;/*** 商品详情图实体类* * @author HenryLei**/
public class ProductImg {// 主键IDprivate Long productImgId;// 图片地址private String imgAddr;// 图片简介private String imgDesc;// 权重,越大越排前显示private Integer priority;// 创建时间private Date createTime;// 标明是属于哪个商品的图片private Long productId;public Long getProductImgId() {return productImgId;}public void setProductImgId(Long productImgId) {this.productImgId = productImgId;}public String getImgAddr() {return imgAddr;}public void setImgAddr(String imgAddr) {this.imgAddr = imgAddr;}public String getImgDesc() {return imgDesc;}public void setImgDesc(String imgDesc) {this.imgDesc = imgDesc;}public Integer getPriority() {return priority;}public void setPriority(Integer priority) {this.priority = priority;}public Date getCreateTime() {return createTime;}public void setCreateTime(Date createTime) {this.createTime = createTime;}public Long getProductId() {return productId;}public void setProductId(Long productId) {this.productId = productId;}}

商品类设计

package com.hbut.o2o.entity;import java.util.Date;
import java.util.List;/*** 商品实体类* * @author HenryLei**/
public class Product {// 主键IDprivate Long productId;// 商品名private String productName;// 商品简介private String productDesc;// 简略图private String imgAddr;// 原价private String normalPrice;// 现价(推广价格)private String promotionPrice;// 权重,越大越排前显示private Integer priority;// 商品积分private Integer point;// 创建时间private Date createTime;// 最近一次的更新时间private Date lastEditTime;// 0.下架 1.在前端展示系统展示private Integer enableStatus;// 图片详情图列表,跟商品是多对一的关系private List<ProductImg> productImgList;// 商品类别,一件商品仅属于一个商品类别private ProductCategory productCategory;// 店铺实体类,标明商品属于哪个店铺private Shop shop;public Long getProductId() {return productId;}public void setProductId(Long productId) {this.productId = productId;}public String getProductName() {return productName;}public void setProductName(String productName) {this.productName = productName;}public String getProductDesc() {return productDesc;}public void setProductDesc(String productDesc) {this.productDesc = productDesc;}public String getImgAddr() {return imgAddr;}public void setImgAddr(String imgAddr) {this.imgAddr = imgAddr;}public String getNormalPrice() {return normalPrice;}public void setNormalPrice(String normalPrice) {this.normalPrice = normalPrice;}public String getPromotionPrice() {return promotionPrice;}public void setPromotionPrice(String promotionPrice) {this.promotionPrice = promotionPrice;}public Integer getPriority() {return priority;}public void setPriority(Integer priority) {this.priority = priority;}public Date getCreateTime() {return createTime;}public void setCreateTime(Date createTime) {this.createTime = createTime;}public Date getLastEditTime() {return lastEditTime;}public void setLastEditTime(Date lastEditTime) {this.lastEditTime = lastEditTime;}public Integer getEnableStatus() {return enableStatus;}public void setEnableStatus(Integer enableStatus) {this.enableStatus = enableStatus;}public Integer getPoint() {return point;}public void setPoint(Integer point) {this.point = point;}public List<ProductImg> getProductImgList() {return productImgList;}public void setProductImgList(List<ProductImg> productImgList) {this.productImgList = productImgList;}public ProductCategory getProductCategory() {return productCategory;}public void setProductCategory(ProductCategory productCategory) {this.productCategory = productCategory;}public Shop getShop() {return shop;}public void setShop(Shop shop) {this.shop = shop;}
}

微信登录实体类设计

package com.hbut.o2o.entity;import java.util.Date;/*** 微信登录实体类* * @author HenryLei**/
public class WechatAuth {// 主键IDprivate Long wechatAuthId;// 微信获取用户信息的凭证,对于某个公众号具有唯一性private String openId;// 创建时间private Date createTime;// 用户信息private PersonInfo personInfo;public Long getWechatAuthId() {return wechatAuthId;}public void setWechatAuthId(Long wechatAuthId) {this.wechatAuthId = wechatAuthId;}public String getOpenId() {return openId;}public void setOpenId(String openId) {this.openId = openId;}public Date getCreateTime() {return createTime;}public void setCreateTime(Date createTime) {this.createTime = createTime;}public PersonInfo getPersonInfo() {return personInfo;}public void setPersonInfo(PersonInfo personInfo) {this.personInfo = personInfo;}}

校园O2O商铺平台-实体类设计与表创建相关推荐

  1. 从零开发校园商铺平台(SSM到SpringBoot)一.开发准备,实体类设计与表创建

    依山傍水房树间,行也安然,住也安然: 一条耕牛半顷田,收也凭天,荒也凭天: 雨过天晴驾小船,鱼在一边,酒在一边: 夜晚妻子话灯前,今也谈谈,古也谈谈: 日上三竿犹在眠,不是神仙,胜似神仙! 一.开发准 ...

  2. java o2o_Java项目实战篇之校园O2O商铺平台-开发准备一

    校园O2O商铺平台 一. 项目介绍 校园o2o平台是一个新兴的电子商务平台,主要是为了广大学生群体建立一个实用性,广泛性,快捷性的消费平台.就大学生的消费的状况,市场份额相当巨大,消费潜力也是非常可观 ...

  3. 校园O2O商铺平台-配置Maven以及SSM的其它各项配置

    配置Maven   配置的pom.xml文件: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi=&q ...

  4. 校园O2O商铺平台-Logback的配置与使用

    Logback的配置 <?xml version="1.0" encoding="UTF-8"?> <configuration scan=& ...

  5. 校园O2O商铺平台-扩展

    引入缓存技术 理论讲解 正在更新 配置讲解 正在更新 编码 正在更新 添加平台帐号体系之需求分析和效果演示 正在更新 添加拦截器 正在更新

  6. 校园O2O商铺平台-店铺注册之前端和前后台联调

    店铺注册之前端设计 正在更新 店铺注册之js实现 正在更新 店铺类别区域信息的获取 正在更新 引入kaptcha实现验证码 正在更新 前后端联调验证整体模块功能 正在更新

  7. 校园O2O商铺平台-店铺注册DAO层与图片处理

    DAO层之新增店铺 正在更新 DAO层之更新店铺 正在更新 Thumbnailator图片处理和封装Util 正在更新 Dto之ShopExecution的实现 正在更新

  8. 校园O2O商铺平台-前台展示系统

    首页后台的开发 正在更新 首页前端的开发 正在更新 店铺列表页后端的开发 正在更新 店铺列表页前端的开发 正在更新 商品详情页的开发 正在更新 店铺详情页的开发 正在更新 前端展示系统bug修复 正在 ...

  9. 校园O2O商铺平台-商品模块

    商品添加之Dao层的实现 正在更新 商品添加之Service层的实现 正在更新 商品添加之Controller层的实现 正在更新 商品添加之前端实现 正在更新 商品编辑之后端开发 正在更新 商品列表展 ...

最新文章

  1. 【Go语言】LiteIDE使用的个人使用方法
  2. micropython串口通信_MicroPython-ESP32串口通信-1Z实验室
  3. 汇编:键盘中断(int 9)
  4. 【维纳滤波】通过MATLAB自带的维纳滤波函数进行滤波
  5. 设计模式java装饰模式范例_Java设计模式之装饰模式详解
  6. 利用virt-manager,xmanager, xshell启动界面来管理虚拟机
  7. 想学AI开发很简单:只要你会复制粘贴
  8. irule jar包无法导入_poi表格的导入导出
  9. (九)ubuntu解决resolv.conf被重写问题
  10. Linux ---yum源详解
  11. 攻防世界-music-高手进阶区-miscmisc
  12. 从零开始打造自己的PHP框架——第3章
  13. 前端开发基本工作内容有哪些?
  14. Vue中Class和Style几种v-bind绑定的用法-详解案例
  15. 地理信息系统(Geographic Information System或 Geo-Information system,GIS)
  16. sxt_1_struts2入门_hello
  17. php7安装fileinfo扩展
  18. 史上最全《JMeter压力测试教程》——通俗易懂,3天即可学会
  19. leetcode 1217. Play with Chips 解法 python
  20. Google Colab 读取/存储 google drive(谷歌云盘)内的文件

热门文章

  1. 【电脑使用】iPad or Android快速访问Windows文件
  2. react+typescript接入百度地图
  3. pyecharts做梯形图
  4. 基于simulink三相半波可控整流电路仿真
  5. 【转】机器学习@美团 ——吃喝玩乐中的算法问题
  6. 进来看很有趣,用JavaScript打印乘法口诀表 用JavaScript打印加法口诀表 用JavaScript打印菱形 用JavaScript判断是否为回文 用JavaScript解决百只鸡的问题
  7. Airbnb Challenge and Expectations
  8. 开始做mvc 框架 家庭理财项目。
  9. nfa状态转换图正规式_穿过隔离栅供电:认识隔离式直流/ 直流偏置电源
  10. hbase 2.4 java.lang.NoSuchMethodError: java.nio.ByteBuffer.rewind()Ljava/nio/ByteBuffer