145
enterPrise Coda using Java ee
public Food(String name, double price, double taxRate,
FoodCategory category) {
this.name = name;
this.price = price;
this.taxRate = taxRate;
this.category = category;
}
public FoodCategory getCategory() {
return category;
}
public void setCategory(FoodCategory category) {
this.category = category;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Double getPrice() {
return price;
}
public void setPrice(Double price) {
this.price = price;
}
public double getTaxRate() {
return taxRate;
}
public void setTaxRate(Double taxRate) {
this.taxRate = taxRate;
}
}
e relationships between entities are depicted with the help of source code
an ...