aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/dev/submelon/pantry/Item.java
diff options
context:
space:
mode:
authorKevin J Hoerr <kjhoerr@protonmail.com>2022-01-25 23:57:08 +0000
committerKevin J Hoerr <kjhoerr@protonmail.com>2022-01-25 23:57:08 +0000
commit11264e508d887a0f8e4317963c0ee032b551023d (patch)
treec6d3601cf6f01892c9763686e3f72b18f918c875 /src/main/java/dev/submelon/pantry/Item.java
parentfee02c8d30869f93a8bb8ac13609bb43d08e08fa (diff)
downloadpantry-11264e508d887a0f8e4317963c0ee032b551023d.tar.gz
pantry-11264e508d887a0f8e4317963c0ee032b551023d.tar.bz2
pantry-11264e508d887a0f8e4317963c0ee032b551023d.zip
Add compose for MariaDB
Diffstat (limited to 'src/main/java/dev/submelon/pantry/Item.java')
-rw-r--r--src/main/java/dev/submelon/pantry/Item.java51
1 files changed, 51 insertions, 0 deletions
diff --git a/src/main/java/dev/submelon/pantry/Item.java b/src/main/java/dev/submelon/pantry/Item.java
new file mode 100644
index 0000000..1df7e91
--- /dev/null
+++ b/src/main/java/dev/submelon/pantry/Item.java
@@ -0,0 +1,51 @@
+package dev.submelon.pantry;
+
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
+import javax.persistence.Id;
+
+@Entity
+public class Item {
+ @Id
+ @GeneratedValue(strategy=GenerationType.AUTO)
+ private Integer id;
+
+ private String name;
+
+ private String description;
+
+ private double quantity;
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getDescription() {
+ return description;
+ }
+
+ public void setDescription(String description) {
+ this.description = description;
+ }
+
+ public double getQuantity() {
+ return quantity;
+ }
+
+ public void setQuantity(double quantity) {
+ this.quantity = quantity;
+ }
+}