diff --git a/src/main/java/org/ntlab/citrusserver/entities/Todo.java b/src/main/java/org/ntlab/citrusserver/entities/Todo.java index 8ba929b..6a19715 100644 --- a/src/main/java/org/ntlab/citrusserver/entities/Todo.java +++ b/src/main/java/org/ntlab/citrusserver/entities/Todo.java @@ -7,27 +7,35 @@ int month; int day; Integer todoId; + Integer bookId; - public Todo(String t, boolean c, int y, int m, int d, Integer tid) { - title = t; - check = c; - year = y; - month = m; - day = d; - todoId = tid; + public Todo(String title, boolean check, int year, int month, int day, Integer tid, Integer bid) { + this.title = title; + this.check = check; + this.year = year; + this.month = month; + this.day = day; + this.todoId = tid; + this.bookId = bid; } + //setter public void setTitle(String t) {title = t;} - public String getTitle() {return title;} public void setCheck(boolean c) {check = c;} - public boolean getCheck() {return check;} public void setYear(int y) {year = y;} - public int getYear() {return year;} public void setMonth(int m) {month = m;} - public int getMonth() {return month;} public void setDay(int d) {day = d;} - public int getDay() {return day;} public void setTodoId(Integer t) {todoId = t;} - public Integer getTodoId() { - return todoId; - } + public void setBookId(Integer b) {bookId = b;} + //getter + public String getTitle() {return title;} + public boolean getCheck() {return check;} + public int getYear() {return year;} + public int getMonth() {return month;} + public int getDay() {return day;} + public Integer getTodoId() {return todoId;} + public Integer getBookId() {return bookId;} + + + + }