Skip to content

Commit 4b4b43f

Browse files
committed
feat: create tool as record entity
Signed-off-by: Otavio Santana <[email protected]>
1 parent bd5e5eb commit 4b4b43f

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package expert.os.samples.helidon.mongodb;
2+
3+
import jakarta.nosql.Column;
4+
import jakarta.nosql.Entity;
5+
import jakarta.nosql.Id;
6+
7+
@Entity
8+
public record Tool (@Id String sku, @Column String name, @Column String type, @Column int quantity) {
9+
10+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
package expert.os.samples.helidon.mongodb;public interface ToolRepository {
2+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
package expert.os.samples.helidon.mongodb;public class ToolResource {
2+
}

0 commit comments

Comments
 (0)