java.lang.Object
edu.cnm.deepdive.teamassignments.model.entity.Group

@Entity public class Group extends Object
Entity class for Group object using JPA mapping.
  • Constructor Details

    • Group

      public Group()
  • Method Details

    • getId

      public Long getId()
      Gets the group's id
      Returns:
      the group's id in long format
    • getCreationDate

      public Date getCreationDate()
      Gets the Date the group was created
      Returns:
      the group's creation date
    • getOwner

      public User getOwner()
      Gets the owner of the group
      Returns:
      the group owner
    • setOwner

      public void setOwner(User owner)
      Sets teh owner of the group
      Parameters:
      owner - of the group
    • getName

      public String getName()
      Gets the name of user.
      Returns:
      the name of user in string format
    • setName

      public void setName(String name)
      Sets the name of user
      Parameters:
      name - of user in string format
    • getTasks

      @NonNull public List<Task> getTasks()
      Gets a list of Tasks
      Returns:
      list of task
    • getUsers

      @NonNull public Set<User> getUsers()
      Sets the user
      Returns:
      the user
    • hashCode

      public int hashCode()
      The hashcode to verify user
      Overrides:
      hashCode in class Object
      Returns:
      the hascode id
    • equals

      public boolean equals(Object obj)
      Boolean status for the group class will be returned if it matches the request id.
      Overrides:
      equals in class Object
      Parameters:
      obj - the root of the class
      Returns:
      the id of the group if it matches the request.