package priv.jesse.mall.entity;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
@Entity
@JsonIgnoreProperties({ "handler","hibernateLazyInitializer" })
public class Product implements Serializable {
@Id
@GeneratedValue
@Column
private Integer id;
/**
* 商品标题
*/
@Column
private String title;
/**
* 市场价
*/
@Column
private Double marketPrice;
/**
* 商城价
*/
@Column
private Double shopPrice;
/**
* 主图
*/
@Column
private String image;
/**
* 描述
*/
@Column(name = "`desc`", columnDefinition = "text")
private String desc;
/**
* 是否热门商品
*/
@Column
private Integer isHot;
/**
* 二级分类Id
*/
@Column
private Integer csid;
/**
* 商品创建日期
*/
@Column
private Date pdate;
@Transient
private Classification categorySec;
public Classification getCategorySec() {
return categorySec;
}
public void setCategorySec(Classification categorySec) {
this.categorySec = categorySec;
}
private static final long serialVersionUID = 1L;
public Product(Integer id, String title, Double marketPrice, Double shopPrice, String image, String desc, Integer isHot, Integer csid, Date pdate) {
this.id = id;
this.title = title;
this.marketPrice = marketPrice;
this.shopPrice = shopPrice;
this.image = image;
this.desc = desc;
this.isHot = isHot;
this.csid = csid;
this.pdate = pdate;
}
public Product() {
super();
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title == null ? null : title.trim();
}
public Double getMarketPrice() {
return marketPrice;
}
public void setMarketPrice(Double marketPrice) {
this.marketPrice = marketPrice;
}
public Double getShopPrice() {
return shopPrice;
}
public void setShopPrice(Double shopPrice) {
this.shopPrice = shopPrice;
}
public String getImage() {
return image;
}
public void setImage(String image) {
this.image = image == null ? null : image.trim();
}
public String getDesc() {
return desc;
}
public void setDesc(String desc) {
this.desc = desc == null ? null : desc.trim();
}
public Integer getIsHot() {
return isHot;
}
public void setIsHot(Integer isHot) {
this.isHot = isHot;
}
public Integer getCsid() {
return csid;
}
public void setCsid(Integer csid) {
this.csid = csid;
}
public Date getPdate() {
return pdate;
}
public void setPdate(Date pdate) {
this.pdate = pdate;
}
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
Product other = (Product) that;
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
&& (this.getMarketPrice() == null ? other.getMarketPrice() == null : this.getMarketPrice().equals(other.getMarketPrice()))
&& (this.getShopPrice() == null ? other.getShopPrice() == null : this.getShopPrice().equals(other.getShopPrice()))
&& (this.getImage() == null ? other.getImage() == null : this.getImage().equals(other.getImage()))
&& (this.getDesc() == null ? other.getDesc() == null : this.getDesc().equals(other.getDesc()))
&& (this.getIsHot() == null ? other.getIsHot() == null : this.getIsHot().equals(other.getIsHot()))
&& (this.getCsid() == null ? other.getCsid() == null : this.getCsid().equals(other.getCsid()))
&& (this.getPdate() == null ? other.getPdate() == null : this.getPdate().equals(other.getPdate()));
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
result = prime * result + ((getMarketPrice() == null) ? 0 : getMarketPrice().hashCode());
result = prime * result + ((getShopPrice() == null) ? 0 : getShopPrice().hashCode());
result = prime * result + ((getImage() == null) ? 0 : getImage().hashCode());
result = prime * result + ((getDesc() == null) ? 0 : getDesc().hashCode());
result = prime * result + ((getIsHot() == null) ? 0 : getIsHot().hashCode());
result = prime * result + ((getCsid() == null) ? 0 : getCsid().hashCode());
result = prime * result + ((getPdate() == null) ? 0 : getPdate().hashCode());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", title=").append(title);
sb.append(", marketPrice=").append(marketPrice);
sb.append(", shopPrice=").append(shopPrice);
sb.append(", image=").append(image);
sb.append(", desc=").append(desc);
sb.append(", isHot=").append(isHot);
sb.append(", csid=").append(csid);
sb.append(", pdate=").append(pdate);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
## 运行环境: 最好是java jdk 1.8,我们在这个平台上运行的,其他版本理论上也可以。 ## IDE环境: Eclipse,Myeclipse,IDEA都可以 ## 硬件环境: windows 7/8/10 1G内存以上 ## 功能实现: 用户角色包含以下功能:查看分类,加入购物车,提交订单,查看商品详情,查看订单,用户登录等功能。 管理员角色包含以下功能:发货,后台登录后首页,商品管理,商城类别增删改查,用户管理,管理员登录,订单管理,资料截图,首页等功能。 用了技术框架: HTML+CSS+JavaScript+java+jsp+Spring+Spring boot
资源推荐
资源详情
资源评论
收起资源包目录
基于SpringBoot+Layui在线电子商城购物网站设计 (381个子文件)
.classpath 1KB
bootstrap.min.css 103KB
style.css 98KB
animate.css 60KB
layui.css 56KB
glyphicons.css 52KB
font-awesome.min.css 30KB
font-awesome.css 27KB
common.css 27KB
halflings.css 20KB
bootstrap-responsive.min.css 16KB
datepicker.css 16KB
select2_metro.css 14KB
layer.css 14KB
style-metro.css 13KB
datetimepicker.css 12KB
chosen.css 12KB
fullcalendar.css 11KB
uniform.default.css 11KB
dropzone.css 10KB
layui.mobile.css 10KB
light.css 9KB
style-responsive.css 9KB
inbox.css 8KB
laydate.css 7KB
purple.css 7KB
brown.css 7KB
blue.css 7KB
grey.css 7KB
default.css 7KB
pricing-tables.css 6KB
bootstrap-toggle-buttons.css 6KB
clockface.css 6KB
timeline.css 6KB
search.css 5KB
profile.css 5KB
bootstrap-modal.css 4KB
daterangepicker.css 4KB
jquery.fancybox.css 4KB
DT_bootstrap.css 4KB
jquery.nestable.css 3KB
blog.css 2KB
bootstrap-wysihtml5.css 2KB
colorpicker.css 2KB
login.css 2KB
login-soft.css 2KB
bootstrap-tag.css 2KB
bootstrap-fileupload.css 2KB
style-non-responsive.css 2KB
error.css 2KB
news.css 2KB
jquery.gritter.css 2KB
timepicker.css 2KB
multi-select-metro.css 2KB
lock.css 2KB
coming-soon.css 2KB
jquery.fileupload-ui.css 1KB
bootstrap-tree.css 1KB
code.css 1KB
jqvmap.css 907B
jquery.tagsinput.css 904B
promo.css 721B
email.css 661B
invoice.css 528B
pagination.css 441B
print.css 328B
about-us.css 267B
jquery.easy-pie-chart.css 141B
bootstrap-responsive1.min.css 0B
jquery.ui.slider.css 0B
jquery-ui-1.10.1.custom.min.css 0B
mall.mv.db 200KB
mall.trace.db 3KB
Dockerfile 613B
fontawesome-webfont.eot 162KB
iconfont.eot 37KB
59.gif 10KB
22.gif 10KB
24.gif 8KB
13.gif 7KB
16.gif 7KB
39.gif 6KB
64.gif 6KB
63.gif 6KB
50.gif 6KB
loading-0.gif 6KB
4.gif 6KB
1.gif 5KB
42.gif 5KB
71.gif 5KB
21.gif 5KB
20.gif 5KB
29.gif 5KB
70.gif 4KB
5.gif 4KB
17.gif 4KB
27.gif 4KB
9.gif 4KB
44.gif 4KB
11.gif 4KB
共 381 条
- 1
- 2
- 3
- 4
资源评论
程序源码工
- 粉丝: 41
- 资源: 469
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于Python和PyTorch框架完成的一个手写数字识别实验源码(带MINIST手写数字数据集)+详细注释(高分项目)
- 基于Matlab在MNIST数据集上利用CNN完成手写体数字识别任务,并实现单层CNN反向传播算法+源代码+文档说明(高分项目)
- NVIDIA驱动、CUDA和Pytorch及其依赖
- html动态爱心代码一(附源码)
- c40539bc-071a-486c-9d52-9d0c18d62dac 4.html
- 基于物理的非视域成像(NLOS)算法,利用了nerf+python源码+文档说明
- yuluer知更鸟.7z(1).001
- python课程设计-基于tensorflow实现的图文生成程序,数据集flickr30k-images+源代码+文档说明+截图
- python作业-基于Flickr30k数据集实现图像文本跨模态搜索python源码+数据集+测试界面+项目说明(高分课程设计)
- 基于Qt实现医院信息管理系统c++源码+文档说明+数据库(期末大作业)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功