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 Book(String title, boolean publicity, String color) { 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;} 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; } }