From 0dccecc25bd1447ffb6bf1eb616c56ed51161726 Mon Sep 17 00:00:00 2001 From: "Mechak (me-shak)" <88886274+mechakdotdev@users.noreply.github.com> Date: Sat, 23 Nov 2024 20:25:35 +0000 Subject: [PATCH] Rename properties for semantic reasons (i.e. plurals for lists) (#17) --- src/main/java/taskmanager/dto/TaskDTO.java | 4 ++-- src/main/java/taskmanager/entity/Task.java | 6 +++--- src/main/java/taskmanager/mapper/TaskMapper.java | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) 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