Class DB.IngredientRecipe

java.lang.Object
team75.model.DB.IngredientRecipe
Enclosing class:
DB

public static class DB.IngredientRecipe extends Object
One ingredient entry in a menu item's recipe, mapping an inventory ingredient to the quantity consumed per order of that menu item.
Author:
Raghu
  • Field Details

    • ingredientId

      public final int ingredientId
    • quantity

      public final double quantity
  • Constructor Details

    • IngredientRecipe

      public IngredientRecipe(int ingredientId, double quantity)
      Parameters:
      ingredientId - ID of the ingredient in the inventory table
      quantity - amount of the ingredient consumed per order
  • Method Details