-
Notifications
You must be signed in to change notification settings - Fork 331
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 properly map to existing collections? #546
Comments
Possible duplicate of #537 |
not fix - collection issue MapsterMapper#430 MapsterMapper#546 - object to ToDistination MapsterMapper#524
Hello, The collection adapter does not interact with elements of the collection TDistination
You converted NestedCollectionDto => NestedCollectionEntity Since the specified fields with such names in |
Hello, looks like you wanted to get .unionby() or .intersectby() between List Tsource and List TDistination ? |
Let's say I have a situation where an incoming collections needs to be mapped onto an existing collection.
src.Adapt(dest)
doesn't produce the intended outcome since (I assume) Mapster doesn't know how to match the items in the collection.The output this produces looks like this:
Is there an easy way to set this up via Mapster?
My current workaround is to write my own "matching logic":
The text was updated successfully, but these errors were encountered: