jeudi 27 avril 2017

Can we write @Component or any other annotations on DTO classes

I am working with Spring Restful and Hibernate. To remove the redundancy in code I want to avoid the object creation of DTO in each and every methods and want to declare it with @Component annotation, I want to know is there any specific rules for DTOs as we have some guidelines for POJO and JavaBeans.

Aucun commentaire:

Enregistrer un commentaire