diff --git a/src/main/java/org/ntlab/citrusserver/entities/Book.java b/src/main/java/org/ntlab/citrusserver/entities/Book.java index ace7bdf..dc010ff 100644 --- a/src/main/java/org/ntlab/citrusserver/entities/Book.java +++ b/src/main/java/org/ntlab/citrusserver/entities/Book.java @@ -2,11 +2,11 @@ public class Book { + private int bookId; private String title; private boolean publicity; private String color; - private int bookId; - private int todoId = 0; + public Book(Integer bookid, String title, boolean publicity, String color) { this.bookId = bookid; @@ -25,8 +25,4 @@ public String getColor() {return color;} public void setBookId(int id) {bookId = id;} public int getBookId() {return bookId;} - public int getTodoId() { - todoId += 1; - return todoId; - } }