汽车销售网站设计与实现 详细设计与代码实现 学位论文 下载本文

}

@Column(nullable=false)

@SearchableProperty(index=Index.NO,store=Store.YES)

public Boolean getVisible() { }

public void setVisible(Boolean visible) { }

@ManyToOne(cascade=CascadeType.REFRESH,optional=false) @JoinColumn(name=\public ProductType getType() { }

public void setType(ProductType type) { }

@Temporal(TemporalType.DATE) public Date getCreatedate() { }

return createdate;

this.type = type; return type; this.visible = visible; return visible;

public void setCreatedate(Date createdate) { }

@Column(nullable=false) public Integer getClickcount() { }

public void setClickcount(Integer clickcount) {

this.clickcount = clickcount;

第13页(共48页)

return clickcount;

this.createdate = createdate;

}

@Column(nullable=false) public Integer getSellcount() { }

public void setSellcount(Integer sellcount) { }

@Column

public Boolean getIsNew() { }

return isNew;

this.sellcount = sellcount; return sellcount;

public void setIsNew(Boolean isNew) { }

this.isNew = isNew;

@Column @SearchableProperty(store=Store.YES)

public String getHighlight() { }

public void setHighlight(String highlight) { }

this.highlight = highlight; return highlight;

@Column

public Boolean getIsHot() { }

public void setIsHot(Boolean isHot) {

this.isHot = isHot;

第14页(共48页)

return isHot;

} @Column

public Boolean getIsActivity() { }

public void setIsActivity(Boolean isActivity) { }

@Column @SearchableProperty(index=Index.NO,store=Store.YES) public Float getBarginMoney() { }

return barginMoney; this.isActivity = isActivity; return isActivity;

public void setBarginMoney(Float barginMoney) { }

@Column(nullable=false)

this.barginMoney = barginMoney;

@SearchableProperty(index=Index.NO,store=Store.YES)

public String getViewImagePathFront() { }

return viewImagePathFront;

public void setViewImagePathFront(String viewImagePathFront) { }

@OneToMany(cascade={CascadeType.ALL},fetch=FetchType.EAGER,

this.viewImagePathFront = viewImagePathFront;

mappedBy=\

public Set getViewImages() { }

第15页(共48页)

return viewImages;

@OneToMany(cascade={CascadeType.ALL}, mappedBy=\public Set getComments() { }

return comments;

public void setComments(Set comments) { }

public void setViewImages(Set viewImages) { }

this.viewImages = viewImages; this.comments = comments;

//获取价格区间组合后的字窜(11.4万-16万)

@Transient

public String getCompSellPrice(){

String[] strs=innerSellPrice.split(\

return strs[0]+\万-\strs[1]+\万\}

//拆分价格区间成两个参数11.4;15-->11.4 15 public String[] splitSellPrice(){ }

public void addComment(Comment comment){ } @Override

public int hashCode() {

final int prime = 31; int result = 1;

result = prime * result + ((code == null) ? 0 : code.hashCode());

第16页(共48页)

this.comments.add(comment); comment.setProduct(this); return innerSellPrice.split(\