// Path: src/main/java/com/hoserdude/toboot/document/Todo.java
// @Document
// public class Todo {
// 
//     @Id
//     private String id;
// 
//     private String userId;
// 
//     private String title;
// 
//     private boolean completed;
// 
//     public Todo() {}
// 
//     public Todo(String userId, String title, boolean completed) {
//         this.userId = userId;
//         this.title = title;
//         this.completed = completed;
//     }
// 
//     public String getId() {
//         return id;
//     }
// 
//     public void setId(String id) {
//         this.id = id;
//     }
// 
//     public String getTitle() {
//         return title;
//     }
// 
//     public void setTitle(String title) {
//         this.title = title;
//     }
// 
//     public boolean isCompleted() {
//         return completed;
//     }
// 
//     public void setCompleted(boolean completed) {
//         this.completed = completed;
//     }
// 
//     public String getUserId() {
//         return userId;
//     }
// 
//     public void setUserId(String userId) {
//         this.userId = userId;
//     }
// }


import com.fasterxml.jackson.annotation.JsonIgnore;
import com.hoserdude.toboot.document.Todo;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
     * Prevents the XML marshaller from sending it back to the client.
     * @return
     */
    @XmlTransient
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public boolean isCompleted() {
        return completed;
    }

    public void setCompleted(boolean completed) {
        this.completed = completed;
    }

    //Mapping to and from domain and DTO

// Path: src/main/java/com/hoserdude/toboot/document/Todo.java
// @Document
// public class Todo {
// 
//     @Id
//     private String id;
// 
//     private String userId;
// 
//     private String title;
// 
//     private boolean completed;
// 
//     public Todo() {}
// 
//     public Todo(String userId, String title, boolean completed) {
//         this.userId = userId;
//         this.title = title;
//         this.completed = completed;
//     }
// 
//     public String getId() {
//         return id;
//     }
// 
//     public void setId(String id) {
//         this.id = id;
//     }
// 
//     public String getTitle() {
//         return title;
//     }
// 
//     public void setTitle(String title) {
//         this.title = title;
//     }
// 
//     public boolean isCompleted() {
//         return completed;
//     }
// 
//     public void setCompleted(boolean completed) {
//         this.completed = completed;
//     }
// 
//     public String getUserId() {
//         return userId;
//     }
// 
//     public void setUserId(String userId) {
//         this.userId = userId;
//     }
// }


// Path: src/main/java/com/hoserdude/toboot/dto/TodoDto.java
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.hoserdude.toboot.document.Todo;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

     * Prevents the XML marshaller from sending it back to the client.
     * @return
     */
    @XmlTransient
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public boolean isCompleted() {
        return completed;
    }

    public void setCompleted(boolean completed) {
        this.completed = completed;
    }

    //Mapping to and from domain and DTO

    public static TodoDto fromTodo(Todo todo) {