Thanks to visit codestin.com
Credit goes to github.com

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

Relationships

None yet

Development

No branches or pull requests

Issue actions