Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a fast way(or Android Studio plugin) to write mapper class? #274

Open
tmac1999 opened this issue Mar 22, 2018 · 2 comments
Open

Comments

@tmac1999
Copy link

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?

@tmac1999
Copy link
Author

I have considered BeanUtils.copyProperties,but it`s a little bit hard to use in Android Framework.

@travisdachi
Copy link

Try http://mapstruct.org. I have successfully use it in my project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants