Skip to content
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

Support BeanMapping#ignoredTargets instead of repeating @Mapping(target = "foo", ignore = true) #3539

Open
filiphr opened this issue Feb 25, 2024 Discussed in #3537 · 0 comments
Milestone

Comments

@filiphr
Copy link
Member

filiphr commented Feb 25, 2024

Discussed in #3537

Originally posted by efenderbosch-atg February 22, 2024
Instead of a bunch of repeated annotations like this:

    @Mapping(target = "foo", ignore = true)
    @Mapping(target = "bar", ignore = true)
    @Mapping(target = "baz", ignore = true)
    @Mapping(target = "qux", ignore = true)

Something similar to @BeanMapping::ignoreUnmappedSourceProperties?

    @BeanMapping(ignoreTargets = ["foo", "bar", "baz", "qux"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant