Class User


  • @Entity
    public class User
    extends java.lang.Object
    Entity class for storing information about a user with userId as primary key
    • Constructor Detail

      • User

        public User​(java.lang.String forename,
                    java.lang.String surname,
                    java.lang.String email,
                    java.time.LocalDate dateOfBirth,
                    Difficulty trainingLevel,
                    java.lang.String hash,
                    java.lang.String salt,
                    int rating,
                    java.lang.String role,
                    int absence,
                    java.util.Set<Activity> activities,
                    java.util.Set<Activity> organizedActivities,
                    java.util.Set<Report> reportsSent,
                    java.util.Set<Report> reportsReceived,
                    java.util.Set<Message> messages,
                    byte[] profilePicture)
      • User

        public User​(java.lang.String forename,
                    java.lang.String surname,
                    java.lang.String email,
                    java.time.LocalDate dateOfBirth,
                    Difficulty trainingLevel,
                    java.lang.String hash,
                    java.lang.String salt,
                    int rating,
                    java.lang.String role,
                    int absence,
                    byte[] profilePicture)
      • User

        public User()
    • Method Detail

      • getReportsSent

        public java.util.Set<Report> getReportsSent()
      • setReportsSent

        public void setReportsSent​(java.util.Set<Report> reportsSent)
      • getReportsReceived

        public java.util.Set<Report> getReportsReceived()
      • setReportsReceived

        public void setReportsReceived​(java.util.Set<Report> reportsReceived)
      • getMessages

        public java.util.Set<Message> getMessages()
      • setMessages

        public void setMessages​(java.util.Set<Message> messages)
      • getActivities

        public java.util.Set<Activity> getActivities()
      • setActivities

        public void setActivities​(java.util.Set<Activity> activities)
      • getOrganizedActivities

        public java.util.Set<Activity> getOrganizedActivities()
      • setOrganizedActivities

        public void setOrganizedActivities​(java.util.Set<Activity> organizedActivities)
      • getUserId

        public long getUserId()
      • setUserId

        public void setUserId​(long userId)
      • getForename

        public java.lang.String getForename()
      • setForename

        public void setForename​(java.lang.String forename)
      • getSurname

        public java.lang.String getSurname()
      • setSurname

        public void setSurname​(java.lang.String surname)
      • getEmail

        public java.lang.String getEmail()
      • setEmail

        public void setEmail​(java.lang.String email)
      • getDateOfBirth

        public java.time.LocalDate getDateOfBirth()
      • setDateOfBirth

        public void setDateOfBirth​(java.time.LocalDate dateOfBirth)
      • getHash

        public java.lang.String getHash()
      • setHash

        public void setHash​(java.lang.String hash)
      • getSalt

        public java.lang.String getSalt()
      • setSalt

        public void setSalt​(java.lang.String salt)
      • getRating

        public int getRating()
      • setRating

        public void setRating​(int rating)
      • getRole

        public java.lang.String getRole()
      • setRole

        public void setRole​(java.lang.String role)
      • getAbsence

        public int getAbsence()
      • setAbsence

        public void setAbsence​(int absence)
      • getTrainingLevel

        public Difficulty getTrainingLevel()
      • setTrainingLevel

        public void setTrainingLevel​(Difficulty trainingLevel)
      • getProfilePicture

        public byte[] getProfilePicture()
      • setProfilePicture

        public void setProfilePicture​(byte[] profilePicture)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object