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();
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
前台:商品查看(分类查看,商品详情,),支付管理 个人中心(增删改查) 后台:用户管理 分类管理(一级分类和二级分类) 订单管理 商品管理 (增删改查) Spring boot+mysql手机商城(带后台管理系统),没有加微信或支付宝支付功能,可以基于这个项目做二次开发 运行环境 jdk8+mysql5.6+IntelliJ IDEA+maven 项目技术(必填) spring boot+mysql+springdata jpa+thymeleaf+bootstrap2.3.1+jquery+layui
资源详情
资源评论
资源推荐
收起资源包目录
基于springboot手机商城管理系统 (464个子文件)
$PRODUCT_WORKSPACE_FILE$ 489B
.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
jquery.ui.slider.css 0B
bootstrap-responsive1.min.css 0B
jquery-ui-1.10.1.custom.min.css 0B
手机商城.docx 202KB
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
8.gif 4KB
共 464 条
- 1
- 2
- 3
- 4
- 5
Javaweb880
- 粉丝: 2
- 资源: 50
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0