Class Ingredient

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

@Entity public class Ingredient extends Object
The Entity of the Ingredient Ingredients included in the pizza
  • Constructor Details

    • Ingredient

      public Ingredient()
    • Ingredient

      public Ingredient(String name, Double price)
      Parameters:
      name - Name of the ingredient
      price - Price of the ingredient
  • Method Details

    • getId

      public int getId()
    • setId

      public void setId(int id)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getPrice

      public Double getPrice()
    • setPrice

      public void setPrice(Double price)
    • getType

      public TypeIngredient getType()
    • setType

      public void setType(TypeIngredient type)
    • getImage

      public String getImage()
    • setImage

      public void setImage(String image)
    • getPizzas

      public List<Pizza> getPizzas()
    • setPizzas

      public void setPizzas(List<Pizza> pizzas)
    • 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