Cambios para la edición del perfil de usuario y su actualización (Vista,
managed bean, metodos en EJB para recuperar datos de Paciente, Medico de familia y medico especialista).
This commit is contained in:
@@ -19,18 +19,20 @@ public class FamilyDoctorTO implements Serializable {
|
||||
private String surname;
|
||||
private String password;
|
||||
private String email;
|
||||
private PrimaryHealthCareCenterTO primaryHealthCareCenter;
|
||||
|
||||
public FamilyDoctorTO() {
|
||||
super();
|
||||
}
|
||||
|
||||
public FamilyDoctorTO(Integer id, String nif, String name, String surname, String password, String email) {
|
||||
public FamilyDoctorTO(Integer id, String nif, String name, String surname, String password, String email, PrimaryHealthCareCenterTO phc) {
|
||||
this.setId(id);
|
||||
this.setNif(nif);
|
||||
this.setName(name);
|
||||
this.setSurname(surname);
|
||||
this.setPassword(password);
|
||||
this.setEmail(email);
|
||||
this.setPrimaryHealthCareCenter(phc);
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
@@ -81,4 +83,12 @@ public class FamilyDoctorTO implements Serializable {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public PrimaryHealthCareCenterTO getPrimaryHealthCareCenter() {
|
||||
return primaryHealthCareCenter;
|
||||
}
|
||||
|
||||
public void setPrimaryHealthCareCenter(PrimaryHealthCareCenterTO primaryHealthCareCenter) {
|
||||
this.primaryHealthCareCenter = primaryHealthCareCenter;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -30,13 +30,14 @@ public class PatientTO implements Serializable {
|
||||
super();
|
||||
}
|
||||
|
||||
public PatientTO(Integer id, String nif, String name, String surname, String password, String email) {
|
||||
public PatientTO(Integer id, String nif, String name, String surname, String password, String email, FamilyDoctorTO familyDoc) {
|
||||
this.setId(id);
|
||||
this.setNif(nif);
|
||||
this.setName(name);
|
||||
this.setSurname(surname);
|
||||
this.setPassword(password);
|
||||
this.setEmail(email);
|
||||
this.setFamilyDoctor(familyDoc);
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
@@ -85,6 +86,14 @@ public class PatientTO implements Serializable {
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public FamilyDoctorTO getFamilyDoctor() {
|
||||
return familyDoctor;
|
||||
}
|
||||
|
||||
public void setFamilyDoctor(FamilyDoctorTO familyDoctor) {
|
||||
this.familyDoctor = familyDoctor;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -19,18 +19,20 @@ public class SpecialistDoctorTO implements Serializable {
|
||||
private String surname;
|
||||
private String password;
|
||||
private String email;
|
||||
private MedicalSpecialtyTO medicalSpecialty;
|
||||
|
||||
public SpecialistDoctorTO() {
|
||||
super();
|
||||
}
|
||||
|
||||
public SpecialistDoctorTO(Integer id, String nif, String name, String surname, String password, String email) {
|
||||
public SpecialistDoctorTO(Integer id, String nif, String name, String surname, String password, String email, MedicalSpecialtyTO medicalSpec) {
|
||||
this.setId(id);
|
||||
this.setNif(nif);
|
||||
this.setName(name);
|
||||
this.setSurname(surname);
|
||||
this.setPassword(password);
|
||||
this.setEmail(email);
|
||||
this.setMedicalSpecialty(medicalSpec);
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
@@ -81,4 +83,12 @@ public class SpecialistDoctorTO implements Serializable {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public MedicalSpecialtyTO getMedicalSpecialty() {
|
||||
return medicalSpecialty;
|
||||
}
|
||||
|
||||
public void setMedicalSpecialty(MedicalSpecialtyTO medicalSpecialty) {
|
||||
this.medicalSpecialty = medicalSpecialty;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user