Is it impossible to use @SubMapping with multiple parameter? #3918
-
|
Hello, I'm pretty new to Mapstruct and stuck with the problem below. I'm trying to map I checked the generated code and the method Error: I also tried in this way, I think using custom method will solve the problem, but since there are alot of fields and many other childs in |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
In addition to my second try, I found a solution using I'm still curios whether this is the best solution or not(I feel like |
Beta Was this translation helpful? Give feedback.
@Contextis meant exactly to be used this way. It is a way to pass certain things to other methods.In any case, I see what you are looking for and I am not sure that it can work properly with
@SubclassMapping. Those only create single parameter mapping methods. Perhaps we can improve this, but this would need a bit more work on our side