Skip to content

ignoreUnmappedSourceProperties does not propagate via @InheritConfiguration #3733

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

RichMacDonald
Copy link

Refer to #3212 (reply in thread).

@BeanMapping(ignoreUnmappedSourceProperties = ...) does not propagate via @InheritConfiguration. So if a domain superclass object is mapped using ignoreUnmappedSourceProperties, any subclass mappings that use @InheritConfiguration have to redeclare the ignoreUnmappedSourceProperties.

Is this something that should always be true, or should it be an optional value, e.g., @InheritConfiguration(inheritIgnoreUnmappedSourceProperties=true)?

I am afraid I lack the understanding of the mapstruct implementation code to make the necessary code. However, I do have a failing test case that illustrates the concern.

@RichMacDonald RichMacDonald changed the title ignoreUnmappedSourceProperties does not propagatevia @InheritConfiguration ignoreUnmappedSourceProperties does not propagate via @InheritConfiguration Oct 1, 2024
@filiphr
Copy link
Member

filiphr commented Oct 1, 2024

Thanks for the tests @RichMacDonald. We'll look into it

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.

2 participants