Nueva propiedad para obtener displayname.

This commit is contained in:
Marcos Garcia Nuñez
2019-12-09 21:19:52 +01:00
parent 8c75f9bac8
commit 26172fe50d
2 changed files with 9 additions and 1 deletions

View File

@@ -42,6 +42,10 @@ public class MedicalSpecialtyTO implements Serializable {
this.description = description;
}
public String getDisplayDescription() {
return String.format("[%s] %s", this.name, this.description);
}
@Override
public String toString() {
return String.format("%s[name=%s]", getClass().getSimpleName(), getName());