Skip to content

Conversation

@chenzijia12300
Copy link
Contributor

@chenzijia12300 chenzijia12300 commented Oct 2, 2022

Fixes #3037

Copy link
Member

@filiphr filiphr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @chenzijia12300. The implementation looks good. However, I think that we need to change the location of the test a bit.

We should not touch the CompositionTest. Instead I would suggest creating a new ValueCompositionTest in a new package org.mapstruct.ap.test.value.composition and also put the CustomValueAnnotation and ValueMappingCompositionMapper in that package.

@chenzijia12300
Copy link
Contributor Author

@filiphr Thank you for pointing it out, I have made the changes ;D

@filiphr
Copy link
Member

filiphr commented Oct 3, 2022

Everything looks good @chenzijia12300, I was about to merge this. However, I remembered that perhaps it will be good to add an example to the documentation as well. Can you please add a new section to the Mapping Values chapter?

@chenzijia12300
Copy link
Contributor Author

@filiphr No problem, I'll try to add an example to the documentation

@filiphr filiphr merged commit 6a394ad into mapstruct:main Nov 3, 2022
@filiphr
Copy link
Member

filiphr commented Nov 3, 2022

Thanks @chenzijia12300

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

Successfully merging this pull request may close these issues.

Support meta annotations for @ValueMapping

3 participants