package com.macro.mall.search.domain;

import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

/**
 * 搜索中的商品属性信息
 * Created by macro on 2018/6/27.
 */
public class EsProductAttributeValue implements Serializable {
    private static final long serialVersionUID = 1L;
    private Long id;
    private Long productAttributeId;
    //属性值
    @Field(type = FieldType.Keyword)
    private String value;
    //属性参数：0->规格；1->参数
    private Integer type;
    //属性名称
    @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;
    }
}

@@ -32,16 +32,69 @@
 omain;%0A%0A
+import lombok.Data;%0Aimport lombok.EqualsAndHashCode;%0A
 import o
@@ -150,16 +150,16 @@
 .Field;%0A
-
 import o
@@ -306,16 +306,60 @@
 27.%0A */%0A
+@Data%0A@EqualsAndHashCode(callSuper = false)%0A
 public c
@@ -684,32 +684,32 @@
 ldType.Keyword)%0A
+
     private Stri
@@ -721,727 +721,6 @@
 me;%0A
-    public Long getId() %7B%0A        return id;%0A    %7D%0A%0A    public void setId(Long id) %7B%0A        this.id = id;%0A    %7D%0A%0A    public Long getProductAttributeId() %7B%0A        return productAttributeId;%0A    %7D%0A%0A    public void setProductAttributeId(Long productAttributeId) %7B%0A        this.productAttributeId = productAttributeId;%0A    %7D%0A%0A    public String getValue() %7B%0A        return value;%0A    %7D%0A%0A    public void setValue(String value) %7B%0A        this.value = value;%0A    %7D%0A%0A    public Integer getType() %7B%0A        return type;%0A    %7D%0A%0A    public void setType(Integer type) %7B%0A        this.type = type;%0A    %7D%0A%0A    public String getName() %7B%0A        return name;%0A    %7D%0A%0A    public void setName(String name) %7B%0A        this.name = name;%0A    %7D%0A
 %7D%0A

Update EsProductAttributeValue.java