Skip to content

How to use the mapping in practice? #136

@cassiusvm

Description

@cassiusvm

The example here: https://github.com/mapstruct/mapstruct-examples/blob/3457f37c24ea7799b0752cc7ee8307283ab09ad2/mapstruct-mapping-with-cycles/src/main/java/org/mapstruct/example/mapper/EmployeeMapper.java

The generated mapping will be like:

Employee toEmployee(EmployeeDto employeeDto, CycleAvoidingMappingContext context) {...}

In practice, how to get a valid CycleAvoidingMappingContext object ?

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