edgar 2016-07-13 13:49:47 +00:00
parent f6283b33c2
commit fe17984137
1 changed files with 148 additions and 149 deletions

View File

@ -74,7 +74,6 @@ public class Empleado implements Serializable {
@ManyToOne
private Empresa empresa;
public Empleado() {
super();
}
@ -254,9 +253,9 @@ public class Empleado implements Serializable {
@Override
public String toString() {
return this.getNombEmpleado();
// return this.getNombPaterno() + getNombMaterno() + getNombEmpleado();
String nombMaterno = getNombMaterno() != null ? getNombMaterno() : "";
String nombPaterno = getNombPaterno() != null ? getNombPaterno() : "";
return getNombEmpleado() + " " + nombMaterno + " " + nombPaterno;
}
}