Skip to content

Commit 29e3268

Browse files
committed
feat: update category record
Signed-off-by: Otavio Santana <[email protected]>
1 parent 9158518 commit 29e3268

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/main/java/org/soujava/samples/mongodb/products/Category.java

+1-7
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,5 @@
44
import jakarta.nosql.Embeddable;
55

66
@Embeddable(Embeddable.EmbeddableType.GROUPING)
7-
public class Category {
8-
9-
@Column
10-
private String name;
11-
12-
@Column
13-
private String description;
7+
public record Category(@Column String name, @Column String description) {
148
}

0 commit comments

Comments
 (0)