diff --git a/src/main/java/org/ntlab/citrusserver/entities/Book.java b/src/main/java/org/ntlab/citrusserver/entities/Book.java index 1bbf11e..fb612e1 100644 --- a/src/main/java/org/ntlab/citrusserver/entities/Book.java +++ b/src/main/java/org/ntlab/citrusserver/entities/Book.java @@ -1,4 +1,23 @@ package org.ntlab.citrusserver.entities; public class Book { + + private String title; + private boolean publicity; + private String color; + private int bookId; + private int todoId = 0; + + public void setTitle(String t) {title = t;} + public String getTitle() {return title;} + public void setPublicity(boolean p) {publicity = p;} + public boolean getPublicity() {return publicity;} + public void setColor(String c) {color = c;} + public String getColor() {return color;} + public void setBookId(int id) {bookId = id;} + public int getBookId() {return bookId;} + public int getTodoId() { + todoId += 1; + return todoId; + } }