-
Notifications
You must be signed in to change notification settings - Fork 334
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
MapToTargetWith not consistent with how MapWith works #100
Comments
Hi, You should use Map instead.
|
Hello, The way you suggest it is not a workaround to the Otherwise, maybe you should make |
I plan to create rule base configuration to allow users to map by convention rather than map individual property. Problem is I really have no time now. For now, pls find the workaround. For MapToTargetWith, actually it might be bug, it should work as you expect. |
In Mapster 3.0, MapToTargetWith now should work with your test case. |
I am trying to ("deep") map two classes. Please see the attached code sample:
Basically, I have no way of defining that whenever I want to for example map two doubles, I'd like to multiply the source and destination values. This came up as I tried to go around the bug with multi-dimensional arrays (see my other issue) - it always resulted in the CollectionAdapter being used even if I defined some custom mapping.
The text was updated successfully, but these errors were encountered: