Skip to content

Commit

Permalink
feat: update task 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 f789847 commit e0461dd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/os/expert/sample/Task.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
package os.expert.sample;

public record Task(String title, String description) {
import jakarta.nosql.Column;
import jakarta.nosql.Embeddable;

@Embeddable(Embeddable.EmbeddableType.GROUPING)
public record Task(@Column String title, @Column String description) {
}

0 comments on commit e0461dd

Please sign in to comment.