Class DietaryRestriction

java.lang.Object
com.cis.gorecipe.model.DietaryRestriction

@Entity public class DietaryRestriction extends Object
This class allows GoRecipe to store various dietary restrictions, such as allergies, intolerances, religious restrictions and more
  • Field Details

    • id

      private Long id
      The primary key of the dietary restriction
    • name

      private String name
      The unique name of the dietary restriction (e.g. Halal, Paleo, Gluten Free)
    • disallowedIngredients

      private List<Ingredient> disallowedIngredients
      A list of ingredients which cannot be used by any user who has this dietary restriction
  • Constructor Details

    • DietaryRestriction

      public DietaryRestriction()