package com.yeshi.fanli.entity.bus.clazz;
|
|
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_class_recommendgoods")
|
public class ClassRecommendGoods {
|
@Id
|
@GeneratedValue(strategy = GenerationType.AUTO)
|
@Column(name = "id")
|
@Expose
|
private long id;
|
@ManyToOne(fetch = FetchType.EAGER)
|
@JoinColumn(name = "goodsclass_id")
|
private GoodsClass goodsClass;
|
@ManyToOne(fetch = FetchType.EAGER)
|
@JoinColumn(name = "taobaogoods_id")
|
@Expose
|
private TaoBaoGoodsBrief taoBaoGoodsBrief;
|
@Expose
|
private int orderby;
|
@Expose
|
private long createtime;
|
|
public ClassRecommendGoods() {
|
// TODO Auto-generated constructor stub
|
}
|
|
public ClassRecommendGoods(long id) {
|
super();
|
this.id = id;
|
}
|
|
public ClassRecommendGoods(GoodsClass goodsClass,
|
TaoBaoGoodsBrief taoBaoGoodsBrief, int orderby, long createtime) {
|
super();
|
this.goodsClass = goodsClass;
|
this.taoBaoGoodsBrief = taoBaoGoodsBrief;
|
this.orderby = orderby;
|
this.createtime = createtime;
|
}
|
|
public long getId() {
|
return id;
|
}
|
|
public void setId(long id) {
|
this.id = id;
|
}
|
|
public GoodsClass getGoodsClass() {
|
return goodsClass;
|
}
|
|
public void setGoodsClass(GoodsClass goodsClass) {
|
this.goodsClass = goodsClass;
|
}
|
|
public TaoBaoGoodsBrief getTaoBaoGoodsBrief() {
|
return taoBaoGoodsBrief;
|
}
|
|
public void setTaoBaoGoodsBrief(TaoBaoGoodsBrief taoBaoGoodsBrief) {
|
this.taoBaoGoodsBrief = taoBaoGoodsBrief;
|
}
|
|
public int getOrderby() {
|
return orderby;
|
}
|
|
public void setOrderby(int orderby) {
|
this.orderby = orderby;
|
}
|
|
public long getCreatetime() {
|
return createtime;
|
}
|
|
public void setCreatetime(long createtime) {
|
this.createtime = createtime;
|
}
|
|
}
|