Skip to content

Support for Builder like "record-builder" #3937

@smikesmike

Description

@smikesmike

Use case

When I am using records with @RecordBuilder (https://github.com/Randgalt/record-builder), then I receive warnings in my mapstruct mapper like:

Unmapped target properties: "with, withId, withName, withLogin, withEmail, withPassword, withRole, withCreatedAt, withRegistered, withEnabled".

It would be nice to have support for wildcards in mapping targets like:

@Mapping(target = "with*", ignore = true)

BR
Marc

Generated Code

No response

Possible workarounds

No response

MapStruct Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions