|
|
@@ -1,23 +1,9 @@
|
|
|
package com.uas.platform.b2b.model;
|
|
|
|
|
|
+import javax.persistence.*;
|
|
|
import java.util.Date;
|
|
|
import java.util.Set;
|
|
|
|
|
|
-import javax.persistence.CascadeType;
|
|
|
-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.OneToMany;
|
|
|
-import javax.persistence.OneToOne;
|
|
|
-import javax.persistence.OrderBy;
|
|
|
-import javax.persistence.SequenceGenerator;
|
|
|
-import javax.persistence.Table;
|
|
|
-
|
|
|
/**
|
|
|
* 供应商发起的主动报价单明细
|
|
|
*
|
|
|
@@ -26,7 +12,7 @@ import javax.persistence.Table;
|
|
|
*/
|
|
|
@Table(name = "sale$quotationitem")
|
|
|
@Entity
|
|
|
-public class SaleQuotationItem {
|
|
|
+public class SaleQuotationItem extends AbstractOrderProduct {
|
|
|
|
|
|
@Id
|
|
|
@GeneratedValue(strategy = GenerationType.AUTO)
|
|
|
@@ -46,13 +32,6 @@ public class SaleQuotationItem {
|
|
|
@JoinColumn(name = "qd_quid", nullable = false)
|
|
|
private SaleQuotation quotation;
|
|
|
|
|
|
- /**
|
|
|
- * 产品
|
|
|
- */
|
|
|
- @OneToOne(cascade = { CascadeType.REFRESH })
|
|
|
- @JoinColumn(name = "qd_prid", insertable = false, updatable = false)
|
|
|
- private Product product;
|
|
|
-
|
|
|
@Column(name = "qd_prid")
|
|
|
private Long productId;
|
|
|
|
|
|
@@ -150,14 +129,6 @@ public class SaleQuotationItem {
|
|
|
this.quotation = quotation;
|
|
|
}
|
|
|
|
|
|
- public Product getProduct() {
|
|
|
- return product;
|
|
|
- }
|
|
|
-
|
|
|
- public void setProduct(Product product) {
|
|
|
- this.product = product;
|
|
|
- }
|
|
|
-
|
|
|
public String getCustProductCode() {
|
|
|
return custProductCode;
|
|
|
}
|
|
|
@@ -166,10 +137,12 @@ public class SaleQuotationItem {
|
|
|
this.custProductCode = custProductCode;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
public Long getProductId() {
|
|
|
return productId;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
public void setProductId(Long productId) {
|
|
|
this.productId = productId;
|
|
|
}
|