Skip to content

Exclude default Methods from Auto-Generated Mapper Implementation #3838

@destiny3912

Description

@destiny3912

Use case

  • I want to define default methods in a mapper interface, but they should only be used when the mapper is called externally. They should not be used within the auto-generated mapper implementation.

  • I think it would be helpful to have an annotation that can be applied to default methods, ensuring they cannot be used by the auto-generated mapper implementation.

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