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 Item() { } public Item(String name, String description, double quantity) { this.name = name; this.description = description; 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 double getQuantity() { return quantity; } public void setQuantity(double quantity) { this.quantity = quantity; } }