|
@@ -0,0 +1,112 @@
|
|
|
|
|
+package com.uas.platform.b2c.trade.rate.model;
|
|
|
|
|
+
|
|
|
|
|
+import com.uas.platform.b2c.prod.store.model.StoreIn;
|
|
|
|
|
+
|
|
|
|
|
+import javax.persistence.*;
|
|
|
|
|
+import java.io.Serializable;
|
|
|
|
|
+import java.util.Date;
|
|
|
|
|
+
|
|
|
|
|
+/**
|
|
|
|
|
+ * 评价模版
|
|
|
|
|
+ *
|
|
|
|
|
+ * Created by wangdy on 2017-08-29.
|
|
|
|
|
+ * 卖家的评价模版
|
|
|
|
|
+ */
|
|
|
|
|
+@Entity
|
|
|
|
|
+@Table(name = "rate$template")
|
|
|
|
|
+public class RateTemplate implements Serializable{
|
|
|
|
|
+
|
|
|
|
|
+ private static final long serialVersionUID = 1L;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * ID
|
|
|
|
|
+ */
|
|
|
|
|
+ @Id
|
|
|
|
|
+ @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "rate$template_gen")
|
|
|
|
|
+ @SequenceGenerator(name = "rate$template_gen", sequenceName = "rate$template_seq", allocationSize = 1)
|
|
|
|
|
+ @Column(name = "id")
|
|
|
|
|
+ private Long id;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 模版名称
|
|
|
|
|
+ */
|
|
|
|
|
+ @Column(name = "rate_templatename")
|
|
|
|
|
+ private String rateTemplateName;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 模版内容
|
|
|
|
|
+ */
|
|
|
|
|
+ @Column(name = "rate_templatecontent")
|
|
|
|
|
+ private String rateTemplateContent;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 所属店铺id
|
|
|
|
|
+ */
|
|
|
|
|
+ @Column(name = "storeid")
|
|
|
|
|
+ private String storeId;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 所属店铺
|
|
|
|
|
+ */
|
|
|
|
|
+ @OneToOne(cascade = { CascadeType.REFRESH })
|
|
|
|
|
+ @JoinColumn(name = "storeid", insertable = false, updatable = false)
|
|
|
|
|
+ private StoreIn storeInfo;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 创建的时间
|
|
|
|
|
+ */
|
|
|
|
|
+ @Column(name = "createtime")
|
|
|
|
|
+ private Date createTime;
|
|
|
|
|
+
|
|
|
|
|
+ public static long getSerialVersionUID() {
|
|
|
|
|
+ return serialVersionUID;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public Long getId() {
|
|
|
|
|
+ return id;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public void setId(Long id) {
|
|
|
|
|
+ this.id = id;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public String getRateTemplateName() {
|
|
|
|
|
+ return rateTemplateName;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public void setRateTemplateName(String rateTemplateName) {
|
|
|
|
|
+ this.rateTemplateName = rateTemplateName;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public String getRateTemplateContent() {
|
|
|
|
|
+ return rateTemplateContent;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public void setRateTemplateContent(String rateTemplateContent) {
|
|
|
|
|
+ this.rateTemplateContent = rateTemplateContent;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public String getStoreId() {
|
|
|
|
|
+ return storeId;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public void setStoreId(String storeId) {
|
|
|
|
|
+ this.storeId = storeId;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public StoreIn getStoreInfo() {
|
|
|
|
|
+ return storeInfo;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public void setStoreInfo(StoreIn storeInfo) {
|
|
|
|
|
+ this.storeInfo = storeInfo;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public Date getCreateTime() {
|
|
|
|
|
+ return createTime;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ public void setCreateTime(Date createTime) {
|
|
|
|
|
+ this.createTime = createTime;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|