8000 Allow ignoring multiple target properties · Issue #1958 · mapstruct/mapstruct · GitHub
[go: up one dir, main page]

Skip to content

Allow ignoring multiple target properties #1958

@varunvora

Description

@varunvora

It would be great if mapstruct provided a way of ignoring multiple target properties.

Instead of writing this

@Mapping(target = "property1", ignore = true)
@Mapping(target = "property2", ignore = true)
@Mapping(target = "property3", ignore = true)

I would prefer

@Mapping(target = {"property1", "property2", "property3"}, ignore = true)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0