Android-CleanArchitecture
Android-CleanArchitecture copied to clipboard
Is there a fast way(or Android Studio plugin) to write mapper class?
If a DTO bean has many fields,then write a mapper class could be a huge burden for me,Specially transform a one-layer(only DTO bean) project to two-layer (DTO bean-VO bean)project.I want maintain the exist DTO field to VO and only the new and changed field will need a mapper.
So Is there a fast way(or Android Studio plugin) to write mapper class?
I have considered BeanUtils.copyProperties,but it`s a little bit hard to use in Android Framework.
Try http://mapstruct.org. I have successfully use it in my project.