package seed.domain;

/**
 * Created by Macsnow on 2017/3/1.
 */
public class Comment {

}

@@ -21,78 +21,813 @@
 %0D%0A%0D%0A
-/**%0D%0A * Created by Macsnow on 2017/3/1.%0D%0A */%0D%0Apublic class Comment %7B%0D%0A
+import org.bson.types.ObjectId;%0D%0Aimport org.springframework.data.mongodb.core.index.Indexed;%0D%0Aimport org.springframework.data.mongodb.core.mapping.Document;%0D%0A%0D%0A/**%0D%0A * Created by Froggy%0D%0A * 2017-03-02.%0D%0A */%0D%0A%0D%0A@Document%0D%0Apublic class Comment %7B%0D%0A    @Indexed%0D%0A    private ObjectId userId;%0D%0A%0D%0A    private String content;%0D%0A%0D%0A    public Comment(ObjectId userId, String content)%7B%0D%0A        this.userId = userId;%0D%0A        this.content = content;%0D%0A    %7D%0D%0A%0D%0A    public void setUserId(ObjectId userId)%7B%0D%0A        this.userId=userId;%0D%0A    %7D%0D%0A%0D%0A    public ObjectId getUserId(ObjectId userId)%7B%0D%0A        return userId;%0D%0A    %7D%0D%0A%0D%0A    public void setContent(String content)%7B%0D%0A        this.content=content;%0D%0A    %7D%0D%0A%0D%0A    public String getContent(String content)%7B%0D%0A        return content;%0D%0A    %7D%0D%0A%0D%0A    protected Comment()%7B%7D
 %0D%0A%7D%0D

Complete Comment.java