Package org.cswteams.ms3.entity
Class User
java.lang.Object
org.cswteams.ms3.entity.User
- Direct Known Subclasses:
Doctor
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 Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUser()Default constructor needed for lombok @Data annotation on Doctor entityUser(String name, String lastname, String taxCode, LocalDate birthday, String email, String password, Set<SystemActor> systemActors) Create a new system user with the specified parameters. -
Method Summary
-
Field Details
-
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 userlastname- The surname of the usertaxCode- Italian "codice fiscale"birthday- Date of birthemail- E-mail of the userpassword- Password of the usersystemActors- 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
-