Skip to content

#3037 Make @ValueMapping and @ValueMappings support combinations - #3043

Merged
filiphr merged 5 commits into
mapstruct:mainfrom
chenzijia12300:feature-3037
Nov 3, 2022
Merged

filiphr merged 5 commits into
mapstruct:mainfrom
chenzijia12300:feature-3037

Conversation

@chenzijia12300

@chenzijia12300 chenzijia12300 commented Oct 2, 2022

Copy link
Copy Markdown
Contributor

Fixes #3037

@filiphr filiphr left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
Contributor Author

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

@filiphr

filiphr commented Oct 3, 2022

Copy link
Copy Markdown
Member

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
Copy Markdown
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

filiphr commented Nov 3, 2022

Copy link
Copy Markdown
Member

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