Skip to content

Commit

Permalink
feat: update goal using jakarta nosql annotations
Browse files Browse the repository at this point in the history
Signed-off-by: Otavio Santana <[email protected]>
  • Loading branch information
otaviojava committed Dec 1, 2024
1 parent eb5bf5f commit f789847
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/os/expert/sample/Goal.java
Original file line number Diff line number Diff line change
@@ -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<Task> tasks) {
@Entity
public record Goal(@Id String title, @Column String description, @Column List<Task> tasks) {
}

0 comments on commit f789847

Please sign in to comment.