From 0b02f4a2964272735a6444a97a6b41c426e970f4 Mon Sep 17 00:00:00 2001 From: macro Date: Fri, 3 Jul 2020 20:38:55 +0800 Subject: [PATCH] Update EsProductAttributeValue.java --- .../domain/EsProductAttributeValue.java | 43 ++----------------- 1 file changed, 4 insertions(+), 39 deletions(-) diff --git a/mall-search/src/main/java/com/macro/mall/search/domain/EsProductAttributeValue.java b/mall-search/src/main/java/com/macro/mall/search/domain/EsProductAttributeValue.java index a21ee94..341d4e9 100644 --- a/mall-search/src/main/java/com/macro/mall/search/domain/EsProductAttributeValue.java +++ b/mall-search/src/main/java/com/macro/mall/search/domain/EsProductAttributeValue.java @@ -1,5 +1,7 @@ package com.macro.mall.search.domain; +import lombok.Data; +import lombok.EqualsAndHashCode; import org.springframework.data.elasticsearch.annotations.Field; import org.springframework.data.elasticsearch.annotations.FieldType; @@ -9,6 +11,8 @@ import java.io.Serializable; * 搜索中的商品属性信息 * Created by macro on 2018/6/27. */ +@Data +@EqualsAndHashCode(callSuper = false) public class EsProductAttributeValue implements Serializable { private static final long serialVersionUID = 1L; private Long id; @@ -21,43 +25,4 @@ public class EsProductAttributeValue implements Serializable { //属性名称 @Field(type=FieldType.Keyword) private String name; - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public Long getProductAttributeId() { - return productAttributeId; - } - - public void setProductAttributeId(Long productAttributeId) { - this.productAttributeId = productAttributeId; - } - - public String getValue() { - return value; - } - - public void setValue(String value) { - this.value = value; - } - - public Integer getType() { - return type; - } - - public void setType(Integer type) { - this.type = type; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } }