Implementación de registro de usuarios para pacientes, medicos de

familia y medicos especialistas.
* Correcciones varias a clases JPA.
* Correcciones en clases POJO.
* Listas desplegables para selección de especialidaes y CAPs.
* Validaciones varias.
* Estilo de interfaz con flexUI de PrimeFaces.
This commit is contained in:
mgarcianun
2019-12-03 21:49:02 +01:00
parent 1a30beafbd
commit d7d214f1e9
14 changed files with 262 additions and 106 deletions

View File

@@ -15,16 +15,16 @@ public class PrimaryHealthCareCenterTO implements Serializable {
private static final long serialVersionUID = 1L;
private String name;
private String description;
private String location;
public PrimaryHealthCareCenterTO() {
super();
}
public PrimaryHealthCareCenterTO(String name, String description) {
public PrimaryHealthCareCenterTO(String name, String location) {
this.name = name;
this.description = description;
this.location = location;
}
public String getName() {
@@ -35,12 +35,30 @@ public class PrimaryHealthCareCenterTO implements Serializable {
this.name = name;
}
public String getDescription() {
return description;
public String getLocation() {
return location;
}
public void setDescription(String description) {
this.description = description;
public void setLocation(String description) {
this.location = description;
}
@Override
public boolean equals(Object other) {
return (other instanceof PrimaryHealthCareCenterTO) && (name != null)
? name.equals(((PrimaryHealthCareCenterTO) other).getName())
: (other == this);
}
@Override
public int hashCode() {
return (name != null)
? (this.getClass().hashCode() + name.hashCode())
: super.hashCode();
}
@Override
public String toString() {
return String.format("%s[name=%s]", getClass().getSimpleName(), getName());
}
}