Nueva propiedad para obtener displayname.
This commit is contained in:
@@ -42,6 +42,10 @@ public class MedicalSpecialtyTO implements Serializable {
|
|||||||
this.description = description;
|
this.description = description;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getDisplayDescription() {
|
||||||
|
return String.format("[%s] %s", this.name, this.description);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return String.format("%s[name=%s]", getClass().getSimpleName(), getName());
|
return String.format("%s[name=%s]", getClass().getSimpleName(), getName());
|
||||||
|
|||||||
@@ -43,8 +43,12 @@ public class PrimaryHealthCareCenterTO implements Serializable {
|
|||||||
this.location = description;
|
this.location = description;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getDisplayDescription() {
|
||||||
|
return String.format("[%s] %s", this.name, this.location);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return String.format("%s[name=%s]", getClass().getSimpleName(), getName());
|
return String.format("%s[name=%s]", getClass().getSimpleName(), this.getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user