Multiples cambios para soportar la utilización de códigos de usuario
únicos para (Pacientes, medicos de familia, medicos especialista y administradores). Nuevos métodos en EJB común para consultar Entidades por Id y por código (Para el login).
This commit is contained in:
@@ -16,6 +16,7 @@ public class PatientTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private Integer id;
|
||||
private String personalIdentificationCode;
|
||||
private String nif;
|
||||
private String name;
|
||||
private String surname;
|
||||
@@ -30,8 +31,9 @@ public class PatientTO implements Serializable {
|
||||
super();
|
||||
}
|
||||
|
||||
public PatientTO(Integer id, String nif, String name, String surname, String password, String email, FamilyDoctorTO familyDoc) {
|
||||
public PatientTO(Integer id, String pic, String nif, String name, String surname, String password, String email, FamilyDoctorTO familyDoc) {
|
||||
this.id = id;
|
||||
this.personalIdentificationCode = pic;
|
||||
this.nif = nif;
|
||||
this.name = name;
|
||||
this.surname = surname;
|
||||
@@ -96,5 +98,11 @@ public class PatientTO implements Serializable {
|
||||
this.familyDoctor = familyDoctor;
|
||||
}
|
||||
|
||||
public String getPersonalIdentificationCode() {
|
||||
return personalIdentificationCode;
|
||||
}
|
||||
|
||||
public void setPersonalIdentificationCode(String personalIdentificationCode) {
|
||||
this.personalIdentificationCode = personalIdentificationCode;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user