Skip to content

Commit 5a34716

Browse files
committed
feat: create manufacturer entity
Signed-off-by: Otavio Santana <[email protected]>
1 parent ee4c200 commit 5a34716

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed
Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
package org.soujava.demos.mongodb.document;
22

3-
public record Manufacturer() {
4-
}
3+
import jakarta.nosql.Column;
4+
import jakarta.nosql.Embeddable;
5+
6+
7+
@Embeddable(Embeddable.EmbeddableType.GROUPING)
8+
public record Manufacturer(@Column String name, @Column String address, @Column String contactNumber) {
9+
10+
}

0 commit comments

Comments
 (0)