package net.furikuri;


import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
public class Todo {
    @Id
    private Long id;
    private String task;
    private String note;

    public Todo() {
    }

    public Todo(String task, String note) {
        this.task = task;
        this.note = note;
    }

    public Todo(Long id, String task, String note) {
        this.id = id;
        this.task = task;
        this.note = note;
    }

    public String getTask() {
        return task;
    }

    public void setTask(String task) {
        this.task = task;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }
}

@@ -50,16 +50,57 @@
 Entity;%0A
+import javax.persistence.GeneratedValue;%0A
 import j
@@ -157,16 +157,36 @@
     @Id%0A
+    @GeneratedValue%0A
     priv
@@ -505,32 +505,146 @@
  = note;%0A    %7D%0A%0A
+    public Long getId() %7B%0A        return id;%0A    %7D%0A%0A    public void setId(Long id) %7B%0A        this.id = id;%0A    %7D%0A%0A
     public Strin

Make id auto generated