Skip to content

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