Skip to content

Commit f789847

Browse files
committed
feat: update goal using jakarta nosql annotations
Signed-off-by: Otavio Santana <[email protected]>
1 parent eb5bf5f commit f789847

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
package os.expert.sample;
22

3+
import jakarta.nosql.Column;
4+
import jakarta.nosql.Entity;
5+
import jakarta.nosql.Id;
6+
37
import java.util.List;
48

5-
public record Goal(String title, String description, List<Task> tasks) {
9+
@Entity
10+
public record Goal(@Id String title, @Column String description, @Column List<Task> tasks) {
611
}

0 commit comments

Comments
 (0)