package GameNationBackEnd.Documents;

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

/**
 * Created by tijs on 30/11/2016.
 */
@Document
public class Friend {
    @Id
    private String id;

    @DBRef
    private User sender;

    @DBRef
    private User receiver;

    private Boolean accepted;
    private Boolean sended;

    public Friend(){
        sender = new User();
        receiver = new User();
    }

    public Friend(User sender, User receiver) {
        this(sender, receiver, false);
    }

    public Friend(User sender, User receiver, boolean accepted){
        this.sender = sender;
        this.receiver = receiver;
        this.sended = true;

        this.accepted = accepted;
    }

    public User getSender() {
        return sender;
    }
    public User getReceiver() {
        return receiver;
    }
    public String getId() {
        return id;
    }
    public Boolean isAccepted(){ return accepted; }
    public Boolean getSended(){ return sended; }

    public void setAccepted(Boolean a){ this.accepted = a; }
    public void setSended(Boolean s){ this.sended = s; }

}

@@ -418,122 +418,29 @@
 ed;%0A
-    private Boolean sended;%0A%0A    public Friend()%7B%0A        sender = new User();%0A        receiver = new User();%0A    
+%0A    public Friend()%7B
 %7D%0A%0A 
@@ -664,36 +664,8 @@
 ver;
-%0A        this.sended = true;
 %0A%0A  
@@ -933,57 +933,8 @@
 d; %7D
-%0A    public Boolean getSended()%7B return sended; %7D
 %0A%0A  
@@ -996,64 +996,6 @@
 ; %7D%0A
-    public void setSended(Boolean s)%7B this.sended = s; %7D%0A%0A
 %7D%0A

Remove "sended" from Friend document