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

@Entity(name="allergy") public class Allergy extends Object
Allergy is an entity class representing an allergy
Version:
1.3
Author:
Stian Lyng and Anders
  • Constructor Details

    • Allergy

      public Allergy()
  • Method Details

    • addUser

      public void addUser(User tempuser)
      adds a user to the allergy
      Parameters:
      tempuser - adds a user to the list of users with this allergy
    • addProduct

      public void addProduct(Product product)
      adds a product to the allergy
      Parameters:
      product - adds a product to the list of products with this allergy
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object