diff --git a/src/main/java/taskmanager/dto/TaskDTO.java b/src/main/java/taskmanager/dto/TaskDTO.java index 029b7a4..d3443e6 100644 --- a/src/main/java/taskmanager/dto/TaskDTO.java +++ b/src/main/java/taskmanager/dto/TaskDTO.java @@ -2,7 +2,7 @@ import lombok.*; -import java.util.Date; +import java.time.LocalDate; import java.util.List; @Data @@ -13,6 +13,6 @@ public class TaskDTO { private List labelIds; private String title; private Integer priority; - private Date dueDate; + private LocalDate dueDate; private String description; } \ No newline at end of file diff --git a/src/main/java/taskmanager/entity/Task.java b/src/main/java/taskmanager/entity/Task.java index 3b8ba13..e5e0683 100644 --- a/src/main/java/taskmanager/entity/Task.java +++ b/src/main/java/taskmanager/entity/Task.java @@ -3,7 +3,7 @@ import jakarta.persistence.*; import lombok.*; -import java.util.Date; +import java.time.LocalDate; import java.util.List; @Entity @@ -23,7 +23,7 @@ public class Task { @OneToMany(fetch = FetchType.LAZY, mappedBy = "task") @NonNull - private List