Commit bb1154cc authored by shihuajun's avatar shihuajun

增加字段

parent 1afdf14d
......@@ -6,17 +6,18 @@ import java.util.Objects;
/**
* @author shihuajun
* @date 2021/8/30 17:34
* @date 2021/8/31 11:29
* @ describing
*/
@Entity
@Table(name = "product_rule", schema = "asset-distribution", catalog = "")
@Table(name = "product_rule", schema = "asset-distribution")
public class ProductRuleEntity {
private long id;
private String ruleName;
private String ruleVal;
private String ruleChinese;
private String textType;
private String ruleType;
private Byte enable;
private Timestamp createdAt;
private Timestamp updatedAt;
......@@ -71,6 +72,16 @@ public class ProductRuleEntity {
this.textType = textType;
}
@Basic
@Column(name = "rule_type", nullable = true, length = 50)
public String getRuleType() {
return ruleType;
}
public void setRuleType(String ruleType) {
this.ruleType = ruleType;
}
@Basic
@Column(name = "enable", nullable = true)
public Byte getEnable() {
......@@ -106,11 +117,11 @@ public class ProductRuleEntity {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ProductRuleEntity that = (ProductRuleEntity) o;
return id == that.id && Objects.equals(ruleName, that.ruleName) && Objects.equals(ruleVal, that.ruleVal) && Objects.equals(ruleChinese, that.ruleChinese) && Objects.equals(textType, that.textType) && Objects.equals(enable, that.enable) && Objects.equals(createdAt, that.createdAt) && Objects.equals(updatedAt, that.updatedAt);
return id == that.id && Objects.equals(ruleName, that.ruleName) && Objects.equals(ruleVal, that.ruleVal) && Objects.equals(ruleChinese, that.ruleChinese) && Objects.equals(textType, that.textType) && Objects.equals(ruleType, that.ruleType) && Objects.equals(enable, that.enable) && Objects.equals(createdAt, that.createdAt) && Objects.equals(updatedAt, that.updatedAt);
}
@Override
public int hashCode() {
return Objects.hash(id, ruleName, ruleVal, ruleChinese, textType, enable, createdAt, updatedAt);
return Objects.hash(id, ruleName, ruleVal, ruleChinese, textType, ruleType, enable, createdAt, updatedAt);
}
}
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