forked from cho-log/spring-learning-test
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathTodo.java
More file actions
40 lines (33 loc) · 763 Bytes
/
Todo.java
File metadata and controls
40 lines (33 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package cholog;
public class Todo {
// TODO: Todo 객체가 가지는 필드들을 정의
private Long userId;
private Long id;
private String title;
private Boolean completed;
public Long getUserId() {
return userId;
}
public Long getId() {
return id;
}
public String getTitle() {
return title;
}
public Boolean getCompleted() {
return completed;
}
// Setters
public void setUserId(Long userId) {
this.userId = userId;
}
public void setId(Long id) {
this.id = id;
}
public void setTitle(String title) {
this.title = title;
}
public void setCompleted(Boolean completed) {
this.completed = completed;
}
}