Skip to content

Conversation

@filiphr
Copy link
Member

@filiphr filiphr commented Jun 30, 2024

This reverts #2560, because we've decided that @BeanMapping(ignoreByDefault = true) should only be applied to target properties and not to source properties. Source properties are anyway ignored, the BeanMapping#unmappedSourcePolicy should be used to control what should happen with unmapped source policy

Fixes #3574

…urce fields

This reverts mapstruct#2560, because we've decided that `@BeanMapping(ignoreByDefault = true)` should only be applied to target properties and not to source properties.
Source properties are anyway ignored, the `BeanMapping#unmappedSourcePolicy` should be used to control what should happen with unmapped source policy
Copy link
Contributor

@thunderhook thunderhook left a comment

Choose a reason for hiding this comment

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

Just a few nit picky notes, and of course Checkstyle makes an appearance 😉

@filiphr
Copy link
Member Author

filiphr commented Jul 6, 2024

Thanks for the feedback @thunderhook. I've applied the changes

@filiphr filiphr merged commit 6937170 into mapstruct:main Jul 6, 2024
@filiphr filiphr deleted the 3574 branch July 6, 2024 08:31
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.

Respect only explicit mappings but fail on unmapped source fields

2 participants