Inheritance or conditional destination type #382
Unanswered
ggalejandro
asked this question in
Q&A
Replies: 1 comment
-
Can I see your map configuration? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to write a mapper for a class wich has an attribute with mixed typed, all of them with inheritance relation, but I cant't find a way to do that.
Trying to provide a simpliffied example model
I want to map groups in some way the mapper could instantiate UserOne or UserTwo based on type.
In an ideal way I'd like to do an UserMap, that dynamically return one type or another, but I have not found any function to do that.
I tried using mapDefer() in combination with mapWith() at both levels, but at User level, it does not override the full destination, and at group level, mapDefer does not work with array members, only with the array itself.
Any help? Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions