Implemented database schema
Implemented DAOs Updated models Implemented Services
This commit is contained in:
@@ -12,4 +12,36 @@ public class MenuItem {
|
||||
|
||||
private String category;
|
||||
|
||||
public MenuItem(int id, String name, String description, double price, String category) {
|
||||
this.id = id;
|
||||
this.name = name;
|
||||
this.description = description;
|
||||
this.price = price;
|
||||
this.category = category;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public double getPrice() {
|
||||
return price;
|
||||
}
|
||||
|
||||
public String getCategory() {
|
||||
return category;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("[%d] %s - $%.2f\n%s\nCategory: %s", id, name, price, description, category);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user