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

Add example for Immutables+MapStruct #65

Open
deepaks829 opened this issue Apr 29, 2019 · 1 comment
Open

Add example for Immutables+MapStruct #65

deepaks829 opened this issue Apr 29, 2019 · 1 comment

Comments

@deepaks829
Copy link

Would be nice to have an example that shows the usage of MapStruct with Immutables.

I was trying to use MapStruct with Immutables and couldn't find a comprehensive example or guide that could walk users through this set up. Would be nice to have this example.

I created a sample Spring REST service that uses MapStruct and Immutables to post my question on StackOverflow.

If you think this is a good addition, with some help and guidance I am willing to improve this to have it included as an example.

@filiphr
Copy link
Member

filiphr commented May 3, 2019

Thanks for creating the issue @deepaks829. We already have some integration tests with immutables. However, it is always good to have an example in our repo :).

Your example is quite good. Would you be willing to reduce your example to only having the Source and Target POJOs plus the mapper? I think that if we exclude Spring and Jackson it would be a bit easier for people that are not familiar with them to see how it can be used with Immutables (I think Immutables is also used in the Android world 😄)

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