Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use the mapping in practice? #136

Closed
cassiusvm opened this issue May 24, 2022 · 1 comment
Closed

How to use the mapping in practice? #136

cassiusvm opened this issue May 24, 2022 · 1 comment

Comments

@cassiusvm
Copy link

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 ?

@cassiusvm
Copy link
Author

My fault! I forgot to see its unit test.
I apologize.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant