package com.yeshi.fanli.entity.bus.recommend;
|
|
import javax.persistence.Column;
|
import javax.persistence.Entity;
|
import javax.persistence.FetchType;
|
import javax.persistence.GeneratedValue;
|
import javax.persistence.GenerationType;
|
import javax.persistence.Id;
|
import javax.persistence.JoinColumn;
|
import javax.persistence.ManyToOne;
|
import javax.persistence.Table;
|
|
import com.google.gson.annotations.Expose;
|
import com.yeshi.fanli.entity.taobao.TaoBaoGoodsBrief;
|
|
/**
|
* 推荐版块商品
|
*
|
* @author Administrator
|
*
|
*/
|
@Entity
|
@Table(name = "yeshi_ec_recommend_section_goods")
|
public class RecommendSectionGoods {
|
@Id
|
@GeneratedValue(strategy = GenerationType.AUTO)
|
@Column(name = "id")
|
@Expose
|
private long id;
|
|
@ManyToOne(fetch = FetchType.EAGER)
|
@JoinColumn(name = "goodsid")
|
@Expose
|
private TaoBaoGoodsBrief taoBaoGoodsBrief;
|
|
@ManyToOne(fetch = FetchType.EAGER)
|
@JoinColumn(name = "recommend_section_id")
|
private RecommendSection recommendSection;
|
|
@Expose
|
private long createtime;// 创建时间
|
|
@Expose
|
private int orderby;// 排序�?
|
|
public RecommendSectionGoods() {
|
}
|
|
public RecommendSectionGoods(long id) {
|
super();
|
this.id = id;
|
}
|
|
public RecommendSectionGoods(TaoBaoGoodsBrief taoBaoGoodsBrief,
|
RecommendSection recommendSection, long createtime, int orderby) {
|
super();
|
this.taoBaoGoodsBrief = taoBaoGoodsBrief;
|
this.recommendSection = recommendSection;
|
this.createtime = createtime;
|
this.orderby = orderby;
|
}
|
|
public long getId() {
|
return id;
|
}
|
|
public void setId(long id) {
|
this.id = id;
|
}
|
|
public TaoBaoGoodsBrief getTaoBaoGoodsBrief() {
|
return taoBaoGoodsBrief;
|
}
|
|
public void setTaoBaoGoodsBrief(TaoBaoGoodsBrief taoBaoGoodsBrief) {
|
this.taoBaoGoodsBrief = taoBaoGoodsBrief;
|
}
|
|
public RecommendSection getRecommendSection() {
|
return recommendSection;
|
}
|
|
public void setRecommendSection(RecommendSection recommendSection) {
|
this.recommendSection = recommendSection;
|
}
|
|
public long getCreatetime() {
|
return createtime;
|
}
|
|
public void setCreatetime(long createtime) {
|
this.createtime = createtime;
|
}
|
|
public int getOrderby() {
|
return orderby;
|
}
|
|
public void setOrderby(int orderby) {
|
this.orderby = orderby;
|
}
|
}
|