/*
*
*
*/
package com.easyshopping.entity;
import java.io.File;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.TreeSet;
import javax.persistence.CascadeType;
import javax.persistence.CollectionTable;
import javax.persistence.Column;
import javax.persistence.ElementCollection;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.Lob;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.OrderBy;
import javax.persistence.PrePersist;
import javax.persistence.PreRemove;
import javax.persistence.PreUpdate;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.Valid;
import javax.validation.constraints.Digits;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import org.apache.commons.beanutils.PropertyUtils;
import org.apache.commons.lang.StringUtils;
import org.dom4j.io.SAXReader;
import org.hibernate.search.annotations.Analyzer;
import org.hibernate.search.annotations.Field;
import org.hibernate.search.annotations.FieldBridge;
import org.hibernate.search.annotations.Index;
import org.hibernate.search.annotations.Indexed;
import org.hibernate.search.annotations.NumericField;
import org.hibernate.search.annotations.Similarity;
import org.hibernate.search.annotations.Store;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.core.io.ClassPathResource;
import org.wltea.analyzer.lucene.IKAnalyzer;
import org.wltea.analyzer.lucene.IKSimilarity;
import com.easyshopping.BigDecimalNumericFieldBridge;
import com.easyshopping.CommonAttributes;
import com.easyshopping.util.FreemarkerUtils;
import com.fasterxml.jackson.annotation.JsonProperty;
import freemarker.template.TemplateException;
/**
* Entity - 商品
*
*
* @version 1.0
*/
@Indexed
@Similarity(impl = IKSimilarity.class)
@Entity
@Table(name = "xx_product")
@SequenceGenerator(name = "sequenceGenerator", sequenceName = "xx_product_sequence")
public class Product extends BaseEntity {
private static final long serialVersionUID = 2167830430439593293L;
/** 点击数缓存名称 */
public static final String HITS_CACHE_NAME = "productHits";
/** 点击数缓存更新间隔时间 */
public static final int HITS_CACHE_INTERVAL = 600000;
/** 商品属性值属性个数 */
public static final int ATTRIBUTE_VALUE_PROPERTY_COUNT = 20;
/** 商品属性值属性名称前缀 */
public static final String ATTRIBUTE_VALUE_PROPERTY_NAME_PREFIX = "attributeValue";
/** 全称规格前缀 */
public static final String FULL_NAME_SPECIFICATION_PREFIX = "[";
/** 全称规格后缀 */
public static final String FULL_NAME_SPECIFICATION_SUFFIX = "]";
/** 全称规格分隔符 */
public static final String FULL_NAME_SPECIFICATION_SEPARATOR = " ";
/** 静态路径 */
private static String staticPath;
/**
* 排序类型
*/
public enum OrderType {
/** 置顶降序 */
topDesc,
/** 价格升序 */
priceAsc,
/** 价格降序 */
priceDesc,
/** 销量降序 */
salesDesc,
/** 评分降序 */
scoreDesc,
/** 日期降序 */
dateDesc
}
/** 编号 */
private String sn;
/** 名称 */
private String name;
/** 全称 */
private String fullName;
/** 销售价 */
private BigDecimal price;
/** 成本价 */
private BigDecimal cost;
/** 市场价 */
private BigDecimal marketPrice;
/** 展示图片 */
private String image;
/** 单位 */
private String unit;
/** 重量 */
private Integer weight;
/** 库存 */
private Integer stock;
/** 已分配库存 */
private Integer allocatedStock;
/** 库存备注 */
private String stockMemo;
/** 赠送积分 */
private Long point;
/** 是否上架 */
private Boolean isMarketable;
/** 是否列出 */
private Boolean isList;
/** 是否置顶 */
private Boolean isTop;
/** 是否为赠品 */
private Boolean isGift;
/** 介绍 */
private String introduction;
/** 备注 */
private String memo;
/** 搜索关键词 */
private String keyword;
/** 页面标题 */
private String seoTitle;
/** 页面关键词 */
private String seoKeywords;
/** 页面描述 */
private String seoDescription;
/** 评分 */
private Float score;
/** 总评分 */
private Long totalScore;
/** 评分数 */
private Long scoreCount;
/** 点击数 */
private Long hits;
/** 周点击数 */
private Long weekHits;
/** 月点击数 */
private Long monthHits;
/** 销量 */
private Long sales;
/** 周销量 */
private Long weekSales;
/** 月销量 */
private Long monthSales;
/** 周点击数更新日期 */
private Date weekHitsDate;
/** 月点击数更新日期 */
private Date monthHitsDate;
/** 周销量更新日期 */
private Date weekSalesDate;
/** 月销量更新日期 */
private Date monthSalesDate;
/** 商品属性值0 */
private String attributeValue0;
/** 商品属性值1 */
private String attributeValue1;
/** 商品属性值2 */
private String attributeValue2;
/** 商品属性值3 */
private String attributeValue3;
/** 商品属性值4 */
private String attributeValue4;
/** 商品属性值5 */
private String attributeValue5;
/** 商品属性值6 */
private String attributeValue6;
/** 商品属性值7 */
private String attributeValue7;
/** 商品属性值8 */
private String attributeValue8;
/** 商品属性值9 */
private String attributeValue9;
/** 商品属性值10 */
private String attributeValue10;
/** 商品属性值11 */
private String attributeValue11;
/** 商品属性值12 */
private String attributeValue12;
/** 商品属性值13 */
private String attributeValue13;
/** 商品属性值14 */
private String attributeValue14;
/** 商品属性值15 */
private String attributeValue15;
/** 商品属性值16 */
private String attributeValue16;
/** 商品属性值17 */
private String attributeValue17;
/** 商品属性值18 */
private String attributeValue18;
/** 商品属性值19 */
private String attributeValue19;
/** 商品分类 */
private ProductCategory productCategory;
/** 货品 */
private Goods goods;
/** 品牌 */
private Brand brand;
/** 商品图片 */
private List<ProductImage> productImages = new ArrayList<ProductImage>();
/** 评论 */
private Set<Review> reviews = new HashSet<Review>();
/** 咨询 */
private Set<Consultation> consultations = new HashSet<Consultation>();
/** 标签 */
private Set<Tag> tags = new HashSet<Tag>();
/** 收藏会员 */
private Set<Member> favoriteMembers = new HashSet<Member>();
/** 规格 */
private Set<Specification> specifications = new HashSet<Specification>();
/** 规格值 */
private Set<SpecificationValue> specificationValues = new HashSet<SpecificationValue>();
/** 促销 */
private Set<Promotion> promotions = new HashSet<Promotion>();
/** 购物车项 */
private Set<CartItem> cartItems = new HashSet<CartItem>();
/** 订单项 */
private Set<OrderItem> orderItems = new HashSet<OrderItem>();
/** 赠品项 */
private Set<GiftItem> giftItems = new HashSet<GiftItem>();
/** 到货通知 */
private Set<ProductNotify
没有合适的资源?快使用搜索试试~ 我知道了~
大型商城网站springmvc+freemarker+velocity+ibatis
共1129个文件
java:463个
ftl:205个
gif:192个
4星 · 超过85%的资源 需积分: 10 24 下载量 28 浏览量
2015-05-11
18:14:52
上传
评论 2
收藏 29.07MB RAR 举报
温馨提示
大型商城网站源码springmvc+freemarker+velocity+ibatis,最新最前沿的技术,特别适合二次开发
资源推荐
资源详情
资源评论
收起资源包目录
大型商城网站springmvc+freemarker+velocity+ibatis (1129个子文件)
product.css 28KB
common.css 26KB
default.css 21KB
common.css 21KB
member.css 10KB
index.css 9KB
order.css 8KB
datepicker.css 5KB
datepicker.css 5KB
article.css 4KB
qq.css 3KB
cart.css 3KB
review.css 2KB
simple.css 2KB
brand.css 2KB
consultation.css 2KB
main.css 2KB
slider.css 2KB
register.css 2KB
login.css 2KB
login.css 1KB
password.css 1KB
product_category.css 1013B
prettify.css 973B
error.css 761B
payment.css 680B
friend_link.css 597B
promotion.css 468B
error.css 448B
WdatePicker.css 165B
WdatePicker.css 165B
view.ftl 38KB
edit.ftl 30KB
content.ftl 27KB
edit.ftl 26KB
add.ftl 19KB
common.ftl 19KB
info.ftl 19KB
list.ftl 19KB
main.ftl 16KB
edit.ftl 16KB
edit.ftl 16KB
edit.ftl 16KB
edit.ftl 14KB
add.ftl 13KB
add.ftl 13KB
list.ftl 13KB
search.ftl 11KB
add.ftl 11KB
view.ftl 11KB
list.ftl 11KB
index.ftl 11KB
edit.ftl 11KB
index.ftl 10KB
list.ftl 10KB
list.ftl 10KB
edit.ftl 10KB
common.ftl 9KB
edit.ftl 9KB
add.ftl 8KB
build.ftl 8KB
add.ftl 8KB
add.ftl 7KB
payment.ftl 7KB
edit.ftl 7KB
add.ftl 7KB
index.ftl 7KB
add.ftl 6KB
list.ftl 6KB
edit.ftl 6KB
content.ftl 6KB
list.ftl 6KB
list.ftl 6KB
list.ftl 5KB
list.ftl 5KB
list.ftl 5KB
index.ftl 5KB
edit.ftl 5KB
list.ftl 5KB
list.ftl 5KB
content.ftl 5KB
edit.ftl 5KB
view.ftl 5KB
recharge.ftl 5KB
edit.ftl 5KB
edit.ftl 5KB
list.ftl 5KB
view.ftl 5KB
list.ftl 5KB
send.ftl 5KB
list.ftl 5KB
list.ftl 5KB
add.ftl 5KB
edit.ftl 5KB
list.ftl 5KB
list.ftl 5KB
list.ftl 5KB
list.ftl 5KB
list.ftl 5KB
list.ftl 5KB
共 1129 条
- 1
- 2
- 3
- 4
- 5
- 6
- 12
资源评论
- gxl4421726632015-06-04一般,架构很老了,框架也很老,基本不能用于实际
- eucalyptus_lin2015-09-06楼主数据库文件能不能发我一份,数据没有初始化看起来很费劲,我邮箱:linfeng458@hotmail.com
java大猿
- 粉丝: 1
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功