Dzoer is an open source utils used to facilitate copying beans. BeanUtils is the Apache equivalent.
Both libraries are used heavily within JEE project to copy the data from the DTOs object to the domain model object(used to do the abstraction between the service layer and the persistence layer/technology).
This kind of libraries rely on the CoC(convention over configuration). They are working correctly only if the attribute name are similar and the both DTO and business object have the same structure(name and sub elements).
In case of difference, the developer have to:
reference:
http://www.adam-bien.com/roller/abien/entry/in_case_dozer_or_beanutils
Both libraries are used heavily within JEE project to copy the data from the DTOs object to the domain model object(used to do the abstraction between the service layer and the persistence layer/technology).
This kind of libraries rely on the CoC(convention over configuration). They are working correctly only if the attribute name are similar and the both DTO and business object have the same structure(name and sub elements).
In case of difference, the developer have to:
- write configuration
- specific mapping code.
reference:
http://www.adam-bien.com/roller/abien/entry/in_case_dozer_or_beanutils
No comments:
Post a Comment