lundi 6 avril 2015

HashMap instead of DTO?

What is wrong in using HashMap instead of DTO ? Instead of calling bean's setters and getters, i can put and get value from a hashmap and pass it between services (hashmap implements Serializable interface). I know it is a bad practice.But why and under which scenario we would face the issue? Thanks for your help in advance.


Aucun commentaire:

Enregistrer un commentaire