|
|
package model;
|
|
|
|
|
|
import java.util.Date;
|
|
|
import java.util.HashSet;
|
|
|
import java.util.Set;
|
|
|
|
|
|
import com.alibaba.fastjson.annotation.JSONField;
|
|
|
|
|
|
public class Product {
|
|
|
|
|
|
private Integer id;
|
|
|
private java.lang.String title;//商品名称
|
|
|
private java.lang.String picture;//商品图片
|
|
|
@JSONField(format = "yyyy-MM-dd")
|
|
|
private Date createTime;//发布时间
|
|
|
private Double sep;//现在商品单价
|
|
|
private Double orp;//原来商品单价
|
|
|
private java.lang.String miao;//商品描述
|
|
|
private Integer creatorId;//发布者id
|
|
|
private Integer classifyId;//分类id
|
|
|
private Integer type;//0供信息,1求信息
|
|
|
private Classify classify;//关联实体类
|
|
|
private User user;//关联实体类
|
|
|
|
|
|
|
|
|
public Product() {
|
|
|
}
|
|
|
|
|
|
public Integer getCreatorId() {
|
|
|
return creatorId;
|
|
|
}
|
|
|
|
|
|
public void setCreatorId(Integer creatorId) {
|
|
|
this.creatorId = creatorId;
|
|
|
}
|
|
|
|
|
|
public Integer getClassifyId() {
|
|
|
return classifyId;
|
|
|
}
|
|
|
|
|
|
public void setClassifyId(Integer classifyId) {
|
|
|
this.classifyId = classifyId;
|
|
|
}
|
|
|
|
|
|
|
|
|
public Classify getClassify() {
|
|
|
return classify;
|
|
|
}
|
|
|
public void setClassify(Classify classify) {
|
|
|
this.classify = classify;
|
|
|
}
|
|
|
public User getUser() {
|
|
|
return user;
|
|
|
}
|
|
|
public void setUser(User user) {
|
|
|
this.user = user;
|
|
|
}
|
|
|
|
|
|
public Integer getId() {
|
|
|
return id;
|
|
|
}
|
|
|
public void setId(Integer id) {
|
|
|
this.id = id;
|
|
|
}
|
|
|
public java.lang.String getTitle() {
|
|
|
return title;
|
|
|
}
|
|
|
public void setTitle(java.lang.String title) {
|
|
|
this.title = title;
|
|
|
}
|
|
|
public java.lang.String getPicture() {
|
|
|
return picture;
|
|
|
}
|
|
|
public void setPicture(java.lang.String picture) {
|
|
|
this.picture = picture;
|
|
|
}
|
|
|
public Date getCreateTime() {
|
|
|
return createTime;
|
|
|
}
|
|
|
public void setCreateTime(Date createTime) {
|
|
|
this.createTime = createTime;
|
|
|
}
|
|
|
public Double getSep() {
|
|
|
return sep;
|
|
|
}
|
|
|
public void setProPrice(Double sep) {
|
|
|
this.sep = sep;
|
|
|
}
|
|
|
public Double getOrg() {
|
|
|
return orp;
|
|
|
}
|
|
|
public void setOrg(Double orp) {
|
|
|
this.orp = orp;
|
|
|
}
|
|
|
|
|
|
public Integer getType() {
|
|
|
return type;
|
|
|
}
|
|
|
public void setType(Integer type) {
|
|
|
this.type = type;
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|