diff options
| author | Kevin J Hoerr <khoerr@ksmpartners.com> | 2022-01-27 14:12:29 -0500 |
|---|---|---|
| committer | Kevin J Hoerr <khoerr@ksmpartners.com> | 2022-01-27 14:12:29 -0500 |
| commit | 615c8a0fc8d2b35da7df90115456d33444104c41 (patch) | |
| tree | aeab4261b4edaf63905bd008ce6992b0d2490916 /src/main/java/dev/submelon/pantry/Item.java | |
| parent | 8d8d8cdd639591c0c4c49b355db1152e310c22d6 (diff) | |
| download | pantry-615c8a0fc8d2b35da7df90115456d33444104c41.tar.gz pantry-615c8a0fc8d2b35da7df90115456d33444104c41.tar.bz2 pantry-615c8a0fc8d2b35da7df90115456d33444104c41.zip | |
Add error handling
Diffstat (limited to 'src/main/java/dev/submelon/pantry/Item.java')
| -rw-r--r-- | src/main/java/dev/submelon/pantry/Item.java | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/src/main/java/dev/submelon/pantry/Item.java b/src/main/java/dev/submelon/pantry/Item.java deleted file mode 100644 index a17f5a1..0000000 --- a/src/main/java/dev/submelon/pantry/Item.java +++ /dev/null @@ -1,75 +0,0 @@ -package dev.submelon.pantry; - -import javax.persistence.Column; -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; - - @Column(nullable=false) - private String name; - - private String description; - - @Column(unique=true, nullable=false) - private String shortid; - - @Column(nullable=false) - private double quantity; - - public Item() { - } - - public Item(String name, String description, String shortid, double quantity) { - this.name = name; - this.description = description; - this.shortid = shortid; - this.quantity = 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 String getShortid() { - return shortid; - } - - public void setShortid(String shortid) { - this.shortid = shortid; - } - - public double getQuantity() { - return quantity; - } - - public void setQuantity(double quantity) { - this.quantity = quantity; - } -} |
