Replies: 1 comment 4 replies
-
Can you provide an example of how you would do it without MapStruct? MapStruct is an annotation processor that is going to generate mapping code as if it has been written by hand. We don't do any reflection during runtime.
Why do you need to carry the cycles in the mapping? What's the use case that you have? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am currently working on a Codebase with complex datatypes and cyclic references between them.
When I try to convert from one type to the next, I eventually run into the following exception:
I already implemented the CycleAvoidingMappingContext referenced in the examples and read through a lot of discussions online.
The core problem as I see it is, that there are too many entities that are loaded when I try to convert types. These attributes however are needed and cannot be ignored like suggested in other issues.
Is there any possible way to transform these fields lazily, only when their getter is called? Or is there another solution to this problem?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions