forked from AdvancedProgramming1404/WS-10-Database
database
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
package dev.model;
|
||||
|
||||
|
||||
public class MenuItem {
|
||||
|
||||
|
||||
private int id;
|
||||
|
||||
private String name;
|
||||
@@ -12,4 +14,74 @@ public class MenuItem {
|
||||
|
||||
private String category;
|
||||
|
||||
|
||||
|
||||
public MenuItem(){
|
||||
|
||||
}
|
||||
|
||||
|
||||
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 void setId(int 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 getPrice(){
|
||||
return price;
|
||||
}
|
||||
|
||||
|
||||
public void setPrice(double price){
|
||||
this.price=price;
|
||||
}
|
||||
|
||||
|
||||
public String getCategory(){
|
||||
return category;
|
||||
}
|
||||
|
||||
|
||||
public void setCategory(String category){
|
||||
this.category=category;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user