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 MemberProductCollection {
    @Id
    private String id;
    @Indexed
    private Long memberId;
    private String memberNickname;
    private String memberIcon;
    @Indexed
    private Long productId;
    private String productName;
    private String productPic;
    private String productSubTitle;
    private String productPrice;
    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 getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductPic() {
        return productPic;
    }

    public void setProductPic(String productPic) {
        this.productPic = productPic;
    }

    public String getProductSubTitle() {
        return productSubTitle;
    }

    public void setProductSubTitle(String productSubTitle) {
        this.productSubTitle = productSubTitle;
    }

    public String getProductPrice() {
        return productPrice;
    }

    public void setProductPrice(String productPrice) {
        this.productPrice = productPrice;
    }

    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
@@ -693,24 +693,24 @@
 oductPrice;%0A
+
     private 
@@ -729,1661 +729,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 getProductId() %7B%0A        return productId;%0A    %7D%0A%0A    public void setProductId(Long productId) %7B%0A        this.productId = productId;%0A    %7D%0A%0A    public String getProductName() %7B%0A        return productName;%0A    %7D%0A%0A    public void setProductName(String productName) %7B%0A        this.productName = productName;%0A    %7D%0A%0A    public String getProductPic() %7B%0A        return productPic;%0A    %7D%0A%0A    public void setProductPic(String productPic) %7B%0A        this.productPic = productPic;%0A    %7D%0A%0A    public String getProductSubTitle() %7B%0A        return productSubTitle;%0A    %7D%0A%0A    public void setProductSubTitle(String productSubTitle) %7B%0A        this.productSubTitle = productSubTitle;%0A    %7D%0A%0A    public String getProductPrice() %7B%0A        return productPrice;%0A    %7D%0A%0A    public void setProductPrice(String productPrice) %7B%0A        this.productPrice = productPrice;%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 MemberProductCollection.java