|
|
@@ -3,11 +3,14 @@ package com.uas.platform.b2b.model;
|
|
|
import java.util.Date;
|
|
|
|
|
|
import javax.persistence.Cacheable;
|
|
|
+import javax.persistence.CascadeType;
|
|
|
import javax.persistence.Column;
|
|
|
import javax.persistence.Entity;
|
|
|
import javax.persistence.GeneratedValue;
|
|
|
import javax.persistence.GenerationType;
|
|
|
import javax.persistence.Id;
|
|
|
+import javax.persistence.JoinColumn;
|
|
|
+import javax.persistence.OneToOne;
|
|
|
import javax.persistence.SequenceGenerator;
|
|
|
import javax.persistence.Table;
|
|
|
|
|
|
@@ -161,6 +164,22 @@ public class Product {
|
|
|
@Column(name = "pr_cmpuuid")
|
|
|
private String cmpUuId;
|
|
|
|
|
|
+ /**
|
|
|
+ * 应用来源<br>
|
|
|
+ * 平台上传的为可以销售的
|
|
|
+ *
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Column(name = "pr_sourceapp")
|
|
|
+ private String sourceApp;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 附件
|
|
|
+ */
|
|
|
+ @OneToOne(cascade = { CascadeType.ALL })
|
|
|
+ @JoinColumn(name = "pr_attachment")
|
|
|
+ private Attach attach;
|
|
|
+
|
|
|
public Long getId() {
|
|
|
return id;
|
|
|
}
|
|
|
@@ -326,4 +345,20 @@ public class Product {
|
|
|
return "编号:" + getCode() + ",标题:" + getTitle() + ",规格型号:" + getSpec();
|
|
|
}
|
|
|
|
|
|
+ public String getSourceApp() {
|
|
|
+ return sourceApp;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setSourceApp(String sourceApp) {
|
|
|
+ this.sourceApp = sourceApp;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Attach getAttach() {
|
|
|
+ return attach;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setAttach(Attach attach) {
|
|
|
+ this.attach = attach;
|
|
|
+ }
|
|
|
+
|
|
|
}
|