Skip to content

Allow ignoring multiple target properties #1958

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

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions