implement toString() in all DTO and POJO
Closed this issue · 5 comments
Hello,
could you please implement the toString() method in all DTO and POJO classes. This will decrease debugging time and leads to a better code quality because we don't need to create extra methods or long nested implemenations to get the information from the objects. The GSON library would be a good choice for this purpose, as it can do this quickly and easily. For example:
@Override
public String toString() {
return new Gson().toJson(this);
}
KR,
BlackRose01
sorry but bump
Hi,
feel free to create a PR with your changes in core-java-spring repository. (All the DTO comes from the dto package of that repository).
It would be useful indeed, but for us it is not the highest priotity to deal with at the moment.
Hi,
as I wrote all DTO comes from core-java-spring repository.
Pull Request was created.