Class Base

java.lang.Object
balu.pizza.webapp.models.Base

@Entity public class Base extends Object
Base entity Determines the base of the pizza: its size and type of dough
  • Constructor Details

    • Base

      public Base()
    • Base

      public Base(String size, String name, double price)
      Parameters:
      size - pizza/base size
      name - base name
      price - base price
  • Method Details

    • getPizzas

      public List<Pizza> getPizzas()
      Get a list of pizzas
      Returns:
      List of pizzas that include this base
    • setPizzas

      public void setPizzas(List<Pizza> pizzas)
      Set a list of pizzas
      Parameters:
      pizzas - list of pizzas
    • getId

      public int getId()
    • setId

      public void setId(int id)
    • getSize

      public String getSize()
    • setSize

      public void setSize(String size)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getPrice

      public double getPrice()
    • setPrice

      public void setPrice(double price)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object