Package balu.pizza.webapp.models
Class Base
java.lang.Object
balu.pizza.webapp.models.Base
Base entity
Determines the base of the pizza: its size and type of dough
-
Constructor Details
-
Base
public Base() -
Base
- Parameters:
size
- pizza/base sizename
- base nameprice
- base price
-
-
Method Details
-
getPizzas
Get a list of pizzas- Returns:
- List of pizzas that include this base
-
setPizzas
Set a list of pizzas- Parameters:
pizzas
- list of pizzas
-
getId
public int getId() -
setId
public void setId(int id) -
getSize
-
setSize
-
getName
-
setName
-
getPrice
public double getPrice() -
setPrice
public void setPrice(double price) -
toString
-
equals
-
hashCode
public int hashCode()
-