package io.github.javageeks.mase.model;

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

/**
 * Todo domain object.
 */
@Document(collection = "todos")
public class Todo {

    @Id
    private long id;

    private long userId;

    private String title;

    private String description;

    private boolean status;

    public long getId() {
        return id;
    }

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

    public long getUserId() {
        return userId;
    }

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

    public String getTitle() {
        return title;
    }

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

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public boolean getStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Todo{");
        sb.append("id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", title='").append(title).append('\'');
        sb.append(", description='").append(description).append('\'');
        sb.append(", status=").append(status);
        sb.append('}');
        return sb.toString();
    }

}

@@ -249,18 +249,20 @@
 private 
-lo
+Stri
 ng id;%0A%0A
@@ -383,26 +383,28 @@
 %0A    public 
-lo
+Stri
 ng getId() %7B
@@ -452,18 +452,20 @@
 d setId(
-lo
+Stri
 ng id) %7B

change todo id type to String