Class Team

    • Constructor Detail

      • Team

        public Team()
      • Team

        public Team​(String name)
    • Method Detail

      • setId

        public void setId​(Long id)
        Specified by:
        setId in class Model
      • getName

        public String getName()
      • setName

        public void setName​(String name)
      • getDescription

        public String getDescription()
      • setDescription

        public void setDescription​(String description)
      • getImage

        public byte[] getImage()
      • setImage

        public void setImage​(byte[] image)
      • getRoles

        public Set<Role> getRoles()
      • setRoles

        public void setRoles​(Set<Role> roles)
      • addRole

        public void addRole​(Role item)
        Add the given Role item to the roles collection.
        Parameters:
        item - the item to add
      • removeRole

        public void removeRole​(Role item)
        Remove the given Role item from the roles collection.
        Parameters:
        item - the item to remove
      • clearRoles

        public void clearRoles()
        Clear the roles collection.
      • getMembers

        public Set<User> getMembers()
      • setMembers

        public void setMembers​(Set<User> members)
      • addMember

        public void addMember​(User item)
        Add the given User item to the members collection.
        Parameters:
        item - the item to add
      • removeMember

        public void removeMember​(User item)
        Remove the given User item from the members collection.
        Parameters:
        item - the item to remove
      • clearMembers

        public void clearMembers()
        Clear the members collection.
      • addTopic

        public void addTopic​(TeamTopic item)
        Add the given TeamTopic item to the topics collection.

        It sets item.team = this to ensure the proper relationship.

        Parameters:
        item - the item to add
      • removeTopic

        public void removeTopic​(TeamTopic item)
        Remove the given TeamTopic item from the topics collection.
        Parameters:
        item - the item to remove
      • clearTopics

        public void clearTopics()
        Clear the topics collection.
      • getAttrs

        public String getAttrs()
      • setAttrs

        public void setAttrs​(String attrs)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object