Implemented database schema

Implemented DAOs
Updated models
Implemented Services
This commit is contained in:
2026-06-22 16:04:14 +03:30
parent 00f990c653
commit d042bfa767
15 changed files with 653 additions and 175 deletions
+32
View File
@@ -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);
}
}