⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 product.java

📁 基于struts+hibernate的电子商务网站。可运行。数据库mysql
💻 JAVA
字号:
package tarena.entity;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import tarena.global.Transform;

/**
 * Product entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Product implements java.io.Serializable {

	// Fields

	private Integer id;
	private Category category;
	private Brand brand;
	private String pname;
	private Byte recommend;
	private String ptype;
	private Double price;
	private Integer prisentation;
	private Byte promotion;
	private Double promotionalprice;
	private Integer allowitem;
	private Date endtime;
	private Date addtime;
	private String warranty;
	private String remark;
	private String summary;
	private String norm;
	private Integer salepopluarity;
	private Integer viewpopluarity;
	private Double totalscore;
	private Double showscore;
	private Double pricescore;
	private Double performancescore;
	private String markuser;
	private String collectuser;
	private Set collects = new HashSet(0);
	private Set transactions = new HashSet(0);
	private Set photos = new HashSet(0);
	private Set colors = new HashSet(0);
	private Set productnorms = new HashSet(0);
	private Set productattentions = new HashSet(0);
	private Set priceses = new HashSet(0);

	// Constructors

	/** default constructor */
	public Product() {
	}

	/** minimal constructor */
	public Product(Category category, Brand brand, String pname, Double price,
			Date addtime, Integer salepopluarity, Integer viewpopluarity,
			Double totalscore, Double showscore, Double pricescore,
			Double performancescore) {
		this.category = category;
		this.brand = brand;
		this.pname = pname;
		this.price = price;
		this.addtime = addtime;
		this.salepopluarity = salepopluarity;
		this.viewpopluarity = viewpopluarity;
		this.totalscore = totalscore;
		this.showscore = showscore;
		this.pricescore = pricescore;
		this.performancescore = performancescore;
	}

	/** full constructor */
	public Product(Category category, Brand brand, String pname,
			Byte recommend, String ptype, Double price, Integer prisentation,
			Byte promotion, Double promotionalprice, Integer allowitem,
			Date endtime, Date addtime, String warranty, String remark,
			String summary, String norm, Integer salepopluarity,
			Integer viewpopluarity, Double totalscore, Double showscore,
			Double pricescore, Double performancescore, String markuser,
			String collectuser, Set collects, Set transactions, Set photos,
			Set colors, Set productnorms, Set productattentions, Set priceses) {
		this.category = category;
		this.brand = brand;
		this.pname = pname;
		this.recommend = recommend;
		this.ptype = ptype;
		this.price = price;
		this.prisentation = prisentation;
		this.promotion = promotion;
		this.promotionalprice = promotionalprice;
		this.allowitem = allowitem;
		this.endtime = endtime;
		this.addtime = addtime;
		this.warranty = warranty;
		this.remark = remark;
		this.summary = summary;
		this.norm = norm;
		this.salepopluarity = salepopluarity;
		this.viewpopluarity = viewpopluarity;
		this.totalscore = totalscore;
		this.showscore = showscore;
		this.pricescore = pricescore;
		this.performancescore = performancescore;
		this.markuser = markuser;
		this.collectuser = collectuser;
		this.collects = collects;
		this.transactions = transactions;
		this.photos = photos;
		this.colors = colors;
		this.productnorms = productnorms;
		this.productattentions = productattentions;
		this.priceses = priceses;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Category getCategory() {
		return this.category;
	}

	public void setCategory(Category category) {
		this.category = category;
	}

	public Brand getBrand() {
		return this.brand;
	}

	public void setBrand(Brand brand) {
		this.brand = brand;
	}

	public String getPname() {
		return this.pname;
	}

	public void setPname(String pname) {
		this.pname = pname;
	}

	public Byte getRecommend() {
		return this.recommend;
	}

	public void setRecommend(Byte recommend) {
		this.recommend = recommend;
	}

	public String getPtype() {
		return this.ptype;
	}

	public void setPtype(String ptype) {
		this.ptype = ptype;
	}

	public Double getPrice() {
		return this.price;
	}
	
	public Double getFormatPrice(){
		return Transform.getFormatNumber(this.price, 2, false);
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Integer getPrisentation() {
		return this.prisentation;
	}

	public void setPrisentation(Integer prisentation) {
		this.prisentation = prisentation;
	}

	public Byte getPromotion() {
		return this.promotion;
	}

	public void setPromotion(Byte promotion) {
		this.promotion = promotion;
	}

	public Double getPromotionalprice() {
		return this.promotionalprice;
	}

	public void setPromotionalprice(Double promotionalprice) {
		this.promotionalprice = promotionalprice;
	}

	public Integer getAllowitem() {
		return this.allowitem;
	}

	public void setAllowitem(Integer allowitem) {
		this.allowitem = allowitem;
	}

	public Date getEndtime() {
		return this.endtime;
	}

	public void setEndtime(Date endtime) {
		this.endtime = endtime;
	}

	public Date getAddtime() {
		return this.addtime;
	}

	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}

	public String getWarranty() {
		return this.warranty;
	}

	public void setWarranty(String warranty) {
		this.warranty = warranty;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getSummary() {
		return this.summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public String getNorm() {
		return this.norm;
	}

	public void setNorm(String norm) {
		this.norm = norm;
	}

	public Integer getSalepopluarity() {
		return this.salepopluarity;
	}

	public void setSalepopluarity(Integer salepopluarity) {
		this.salepopluarity = salepopluarity;
	}

	public Integer getViewpopluarity() {
		return this.viewpopluarity;
	}

	public void setViewpopluarity(Integer viewpopluarity) {
		this.viewpopluarity = viewpopluarity;
	}

	public Double getTotalscore() {
		return this.totalscore;
	}

	public void setTotalscore(Double totalscore) {
		this.totalscore = totalscore;
	}

	public Double getShowscore() {
		return this.showscore;
	}

	public void setShowscore(Double showscore) {
		this.showscore = showscore;
	}

	public Double getPricescore() {
		return this.pricescore;
	}

	public void setPricescore(Double pricescore) {
		this.pricescore = pricescore;
	}

	public Double getPerformancescore() {
		return this.performancescore;
	}

	public void setPerformancescore(Double performancescore) {
		this.performancescore = performancescore;
	}

	public String getMarkuser() {
		return this.markuser;
	}

	public void setMarkuser(String markuser) {
		this.markuser = markuser;
	}

	public String getCollectuser() {
		return this.collectuser;
	}

	public void setCollectuser(String collectuser) {
		this.collectuser = collectuser;
	}

	public Set getCollects() {
		return this.collects;
	}

	public void setCollects(Set collects) {
		this.collects = collects;
	}

	public Set getTransactions() {
		return this.transactions;
	}

	public void setTransactions(Set transactions) {
		this.transactions = transactions;
	}

	public Set getPhotos() {
		return this.photos;
	}

	public void setPhotos(Set photos) {
		this.photos = photos;
	}

	public Set getColors() {
		return this.colors;
	}

	public void setColors(Set colors) {
		this.colors = colors;
	}

	public Set getProductnorms() {
		return this.productnorms;
	}

	public void setProductnorms(Set productnorms) {
		this.productnorms = productnorms;
	}

	public Set getProductattentions() {
		return this.productattentions;
	}

	public void setProductattentions(Set productattentions) {
		this.productattentions = productattentions;
	}

	public Set getPriceses() {
		return this.priceses;
	}

	public void setPriceses(Set priceses) {
		this.priceses = priceses;
	}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -