package com.macro.mall.portal.domain;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * 会员品牌关注
 * Created by macro on 2018/8/2.
 */
@Document
public class MemberBrandAttention {
    @Id
    private String id;
    @Indexed
    private Long memberId;
    private String memberNickname;
    private String memberIcon;
    @Indexed
    private Long brandId;
    private String brandName;
    private String brandLogo;
    private String brandCity;
    private Date createTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public String getMemberNickname() {
        return memberNickname;
    }

    public void setMemberNickname(String memberNickname) {
        this.memberNickname = memberNickname;
    }

    public String getMemberIcon() {
        return memberIcon;
    }

    public void setMemberIcon(String memberIcon) {
        this.memberIcon = memberIcon;
    }

    public Long getBrandId() {
        return brandId;
    }

    public void setBrandId(Long brandId) {
        this.brandId = brandId;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public String getBrandLogo() {
        return brandLogo;
    }

    public void setBrandLogo(String brandLogo) {
        this.brandLogo = brandLogo;
    }

    public String getBrandCity() {
        return brandCity;
    }

    public void setBrandCity(String brandCity) {
        this.brandCity = brandCity;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}

@@ -32,16 +32,60 @@
 omain;%0A%0A
+import lombok.Getter;%0Aimport lombok.Setter;%0A
 import o
@@ -123,16 +123,16 @@
 ion.Id;%0A
-
 import o
@@ -322,16 +322,32 @@
 /2.%0A */%0A
+@Getter%0A@Setter%0A
 @Documen
@@ -646,24 +646,24 @@
  brandCity;%0A
+
     private 
@@ -682,1417 +682,7 @@
 ime;
-%0A%0A    public String getId() %7B%0A        return id;%0A    %7D%0A%0A    public void setId(String id) %7B%0A        this.id = id;%0A    %7D%0A%0A    public Long getMemberId() %7B%0A        return memberId;%0A    %7D%0A%0A    public void setMemberId(Long memberId) %7B%0A        this.memberId = memberId;%0A    %7D%0A%0A    public String getMemberNickname() %7B%0A        return memberNickname;%0A    %7D%0A%0A    public void setMemberNickname(String memberNickname) %7B%0A        this.memberNickname = memberNickname;%0A    %7D%0A%0A    public String getMemberIcon() %7B%0A        return memberIcon;%0A    %7D%0A%0A    public void setMemberIcon(String memberIcon) %7B%0A        this.memberIcon = memberIcon;%0A    %7D%0A%0A    public Long getBrandId() %7B%0A        return brandId;%0A    %7D%0A%0A    public void setBrandId(Long brandId) %7B%0A        this.brandId = brandId;%0A    %7D%0A%0A    public String getBrandName() %7B%0A        return brandName;%0A    %7D%0A%0A    public void setBrandName(String brandName) %7B%0A        this.brandName = brandName;%0A    %7D%0A%0A    public String getBrandLogo() %7B%0A        return brandLogo;%0A    %7D%0A%0A    public void setBrandLogo(String brandLogo) %7B%0A        this.brandLogo = brandLogo;%0A    %7D%0A%0A    public String getBrandCity() %7B%0A        return brandCity;%0A    %7D%0A%0A    public void setBrandCity(String brandCity) %7B%0A        this.brandCity = brandCity;%0A    %7D%0A%0A    public Date getCreateTime() %7B%0A        return createTime;%0A    %7D%0A%0A    public void setCreateTime(Date createTime) %7B%0A        this.createTime = createTime;%0A    %7D
 %0A%7D%0A

Update MemberBrandAttention.java