Class User

java.lang.Object
org.cswteams.ms3.entity.User
Direct Known Subclasses:
Doctor

@Entity public class User extends Object
Entity that represents the user of the system. May be a doctor or not (configurator may be another person in the hospital)
See Also:
  • Field Details

    • id

      protected Long id
  • Constructor Details

    • User

      public User(String name, String lastname, String taxCode, LocalDate birthday, String email, String password, Set<SystemActor> systemActors)
      Create a new system user with the specified parameters.
      Parameters:
      name - The name of the user
      lastname - The surname of the user
      taxCode - Italian "codice fiscale"
      birthday - Date of birth
      email - E-mail of the user
      password - Password of the user
      systemActors - Set of roles of the user in the system (configurator/planner/doctor/user)
    • User

      protected User()
      Default constructor needed for lombok @Data annotation on Doctor entity