Healthcare Portal
 
Loading...
Searching...
No Matches
com.hospital.portal.model.User Class Referenceabstract
Inheritance diagram for com.hospital.portal.model.User:
com.hospital.portal.model.Admin com.hospital.portal.model.Doctor com.hospital.portal.model.Patient

Public Member Functions

 User ()
 
 User (String dni, String name, String surname, LocalDate birthDate, String gender, String phone, String mail, String password)
 
String getDni ()
 
void setDni (String dni)
 
String getName ()
 
void setName (String name)
 
String getSurname ()
 
void setSurname (String surname)
 
LocalDate getBirthDate ()
 
void setBirthDate (LocalDate birthDate)
 
String getGender ()
 
void setGender (String gender)
 
String getPhone ()
 
void setPhone (String phone)
 
String getEmail ()
 
void setEmail (String mail)
 
String getPassword ()
 
void setPassword (String password)
 
String toString ()
 

Public Attributes

String dni
 

Detailed Description

Represents a user in the hospital portal system.

This class is mapped to the "users" table in the database.

Constructor & Destructor Documentation

◆ User() [1/2]

com.hospital.portal.model.User.User ( )
inline

Default constructor for JPA.

◆ User() [2/2]

com.hospital.portal.model.User.User ( String  dni,
String  name,
String  surname,
LocalDate  birthDate,
String  gender,
String  phone,
String  mail,
String  password 
)
inline

Constructs a User with the specified details.

Parameters
dnithe DNI of the user
namethe name of the user
surnamethe surname of the user
birthDatethe birth date of the user
genderthe gender of the user
phonethe phone number of the user
mailthe email address of the user
passwordthe password of the user

Member Function Documentation

◆ getBirthDate()

LocalDate com.hospital.portal.model.User.getBirthDate ( )
inline

◆ getDni()

String com.hospital.portal.model.User.getDni ( )
inline

◆ getEmail()

String com.hospital.portal.model.User.getEmail ( )
inline

◆ getGender()

String com.hospital.portal.model.User.getGender ( )
inline

◆ getName()

String com.hospital.portal.model.User.getName ( )
inline

◆ getPassword()

String com.hospital.portal.model.User.getPassword ( )
inline

◆ getPhone()

String com.hospital.portal.model.User.getPhone ( )
inline

◆ getSurname()

String com.hospital.portal.model.User.getSurname ( )
inline

◆ setBirthDate()

void com.hospital.portal.model.User.setBirthDate ( LocalDate  birthDate)
inline

◆ setDni()

void com.hospital.portal.model.User.setDni ( String  dni)
inline

◆ setEmail()

void com.hospital.portal.model.User.setEmail ( String  mail)
inline

◆ setGender()

void com.hospital.portal.model.User.setGender ( String  gender)
inline

◆ setName()

void com.hospital.portal.model.User.setName ( String  name)
inline

◆ setPassword()

void com.hospital.portal.model.User.setPassword ( String  password)
inline

◆ setPhone()

void com.hospital.portal.model.User.setPhone ( String  phone)
inline

◆ setSurname()

void com.hospital.portal.model.User.setSurname ( String  surname)
inline

◆ toString()

String com.hospital.portal.model.User.toString ( )
inline

Returns a string representation of the User.

Returns
a string representation of the User

Reimplemented in com.hospital.portal.model.Admin, and com.hospital.portal.model.Doctor.

Member Data Documentation

◆ dni

String com.hospital.portal.model.User.dni

Unique identifier for the user (DNI).


The documentation for this class was generated from the following file: