Skip to content

Commit 09dc582

Browse files
committed
feat: create Product entity
Signed-off-by: Otavio Santana <[email protected]>
1 parent 6954c46 commit 09dc582

File tree

1 file changed

+26
-0
lines changed
  • src/main/java/org/soujava/samples/mongodb/products

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
package org.soujava.samples.mongodb.products;
2+
3+
import jakarta.nosql.Column;
4+
import jakarta.nosql.Entity;
5+
import jakarta.nosql.Id;
6+
7+
import java.util.List;
8+
9+
@Entity
10+
public class Product {
11+
12+
@Id
13+
private String id;
14+
15+
@Column
16+
private String name;
17+
18+
@Column
19+
private Manufacturer manufacturer;
20+
21+
@Column
22+
private List<String> tags;
23+
24+
@Column
25+
private Set<Category> categories;
26+
}

0 commit comments

Comments
 (0)