java.lang.Object
ntnu.idatt2016.v233.SmartMat.entity.product.Recipe

@Entity(name="recipe") public class Recipe extends Object
Recipe is an entity class representing a recipe in the system.
Version:
1.7
Author:
Anders, Stian, Birk
  • Constructor Details

    • Recipe

      public Recipe()
  • Method Details

    • addProduct

      public void addProduct(Product product)
      Adds a product to the recipe
      Parameters:
      product - product to add
    • addUser

      public void addUser(User user)
      Adds a user to the recipe used for adding favorites
      Parameters:
      user - user to add