Class UserDTO

java.lang.Object
it.unimib.unimibmodules.dto.UserDTO

public class UserDTO extends Object
A DTO representing a user
Version:
0.4.1
Author:
Gianlorenzo Martini
  • Field Details

    • id

      private int id
      Serialization of the id of the user
    • email

      private String email
      Serialization of the email of the user
    • username

      private String username
      Serialization of the username of the user
    • password

      private String password
      Serialization of the password of the user
    • name

      private String name
      Serialization of the name of the user
    • surname

      private String surname
      Serialization of the surname of the user
    • compilationId

      private String compilationId
      Serialization of the id used to recognize a non-registered user.
    • questionsCreatedDTO

      private Set<QuestionDTO> questionsCreatedDTO
      Serialization of the questions created by the user
    • surveysCreatedDTO

      private Set<SurveyDTO> surveysCreatedDTO
      Serialization of the surveys created by the user
  • Constructor Details

    • UserDTO

      public UserDTO()
  • Method Details

    • setId

      public void setId(int id)
      Modifies the id of the user.
      Parameters:
      id - the new id value
    • setId

      public void setId(Object id)
      Modifies the id of the user.
      Parameters:
      id - the new id value
    • setUsername

      public void setUsername(String username)
      Modifies the username of the user.
      Parameters:
      username - the new username value
    • setUsername

      public void setUsername(Object username)
      Modifies the username of the user.
      Parameters:
      username - the new username value