Skip to content

#3574 Respect only explicit mappings but fail on unmapped source fields#3632

Merged
filiphr merged 2 commits into
mapstruct:mainfrom
filiphr:3574
Jul 6, 2024
Merged

#3574 Respect only explicit mappings but fail on unmapped source fields#3632
filiphr merged 2 commits into
mapstruct:mainfrom
filiphr:3574

Conversation

@filiphr

@filiphr filiphr commented Jun 30, 2024

Copy link
Copy Markdown
Member

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

@thunderhook thunderhook left a comment

Copy link
Copy Markdown
Contributor

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 😉

Comment thread documentation/src/main/asciidoc/chapter-10-advanced-mapping-options.asciidoc Outdated
Comment thread documentation/src/main/asciidoc/chapter-10-advanced-mapping-options.asciidoc Outdated
Comment thread NEXT_RELEASE_CHANGELOG.md Outdated
@filiphr

filiphr commented Jul 6, 2024

Copy link
Copy Markdown
Member Author

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