diff --git a/src/main/java/org/ntlab/citrusserver/entities/Book.java b/src/main/java/org/ntlab/citrusserver/entities/Book.java index f9aec9b..dc010ff 100644 --- a/src/main/java/org/ntlab/citrusserver/entities/Book.java +++ b/src/main/java/org/ntlab/citrusserver/entities/Book.java @@ -2,18 +2,21 @@ public class Book { + private int bookId; private String title; private boolean publicity; private String color; - private int bookId; - private int todoId = 0; - public Book(String title, boolean publicity, String color) { + + public Book(Integer bookid, String title, boolean publicity, String color) { + this.bookId = bookid; + this.title = title; this.publicity = publicity; this.color = color; } + public void setTitle(String t) {title = t;} public String getTitle() {return title;} public void setPublicity(boolean p) {publicity = p;} @@ -22,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; - } }