Skip to content

Support addAllProperty #1343

@wenerme

Description

@wenerme

Mapstruct 1.2 will detect addProperty method, if adder is prefered, will use this instead of getList().add(), this is very useful, e.g. jpa entity add children, or some builder only got adder method.

So, I suggest support addAllProperty instead of getList().addAll() or for loop addProperty, sometime, the builder can only addAllProperty, because getList() return an immutable view.

If there is a addAllProperty, it means "please use this method instead".

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions