From f78984748b9217a2103c87ef0d2dfffa51276734 Mon Sep 17 00:00:00 2001 From: Otavio Santana Date: Sun, 1 Dec 2024 19:19:32 +0000 Subject: [PATCH] feat: update goal using jakarta nosql annotations Signed-off-by: Otavio Santana --- src/main/java/os/expert/sample/Goal.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/os/expert/sample/Goal.java b/src/main/java/os/expert/sample/Goal.java index 3827197..d0c052a 100644 --- a/src/main/java/os/expert/sample/Goal.java +++ b/src/main/java/os/expert/sample/Goal.java @@ -1,6 +1,11 @@ package os.expert.sample; +import jakarta.nosql.Column; +import jakarta.nosql.Entity; +import jakarta.nosql.Id; + import java.util.List; -public record Goal(String title, String description, List tasks) { +@Entity +public record Goal(@Id String title, @Column String description, @Column List tasks) { }