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 other mapper as nested mapper #62

Open
alimcomp opened this issue Aug 29, 2022 · 2 comments
Open

how to use other mapper as nested mapper #62

alimcomp opened this issue Aug 29, 2022 · 2 comments

Comments

@alimcomp
Copy link

alimcomp commented Aug 29, 2022

Hi and thank you for work
I have to use other mapper inside my mapper for mapping nested element of my model to entity
But currently I have to copy same method from other mapper

@smotastic
Copy link
Owner

Yes, currently there is no other way other than copying the method from the other mapper as you mentioned, unfortunately.
But I think this is a good idea for a future feature.
I am thinking just adding the dependend mapper as a constructor argument, and the generating mapper should be able to then inject the instance into his own mapper.

Only problems I see (or might happen) is that there is a dependency inbetween mappers now, so the order of generating mappers becomes important all of the sudden.

@alaincruz06
Copy link

Any update/follow-up on this?

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

3 participants