Commit 996b5748 authored by 覃振观's avatar 覃振观 👶

Entity 属性遗漏

parent 1542e0d4
...@@ -7,10 +7,7 @@ import com.huigou.topsun.common.NumberToStringSerializer; ...@@ -7,10 +7,7 @@ import com.huigou.topsun.common.NumberToStringSerializer;
import org.apache.commons.lang.builder.EqualsBuilder; import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.commons.lang.builder.HashCodeBuilder;
import javax.persistence.Column; import javax.persistence.*;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable; import java.io.Serializable;
import java.math.BigDecimal; import java.math.BigDecimal;
...@@ -38,6 +35,9 @@ public class ProductFace implements Serializable { ...@@ -38,6 +35,9 @@ public class ProductFace implements Serializable {
@Column(name = "product_image", nullable = true, length = 512) @Column(name = "product_image", nullable = true, length = 512)
private String productImage; private String productImage;
@Transient
private Boolean isBack;
@Override @Override
public boolean equals(Object o) { public boolean equals(Object o) {
if (this == o) return true; if (this == o) return true;
...@@ -66,4 +66,12 @@ public class ProductFace implements Serializable { ...@@ -66,4 +66,12 @@ public class ProductFace implements Serializable {
public void setProductImage(String productImage) { public void setProductImage(String productImage) {
this.productImage = productImage; this.productImage = productImage;
} }
public Boolean getBack() {
return isBack;
}
public void setBack(Boolean back) {
isBack = back;
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment