I am doing a code review for one project. You can see this architecture as follows:

Currently, DTOs are simple POJOs, and Domains contain Hibernate animations. Since I know that one of the advantages of using DTO is that you can make all domain fields public and remove all this stub code using getters and setters. Is this the right approach?
What do you think of removing getters and setters from the DTO? There may also be some pros doing DTO in Groovy?
What do you think about this?
source
share