Skip to content

Commit ca8c91d

Browse files
committed
feat: create category on products
Signed-off-by: Otavio Santana <otaviopolianasantana@gmail.com>
1 parent a4e7275 commit ca8c91d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package org.soujava.samples.mongodb.products;
2+
3+
import jakarta.nosql.Column;
4+
import jakarta.nosql.Embeddable;
5+
6+
@Embeddable(Embeddable.EmbeddableType.GROUPING)
7+
public record Category(@Column String name, @Column String description) {
8+
}

0 commit comments

Comments
 (0)