atlasmap-attic / atlasmap-ui

An Angular2 module for designing Atlasmap mapping definitions
Apache License 2.0
9 stars 8 forks source link

Support complex object mapping #73

Open igarashitm opened 7 years ago

igarashitm commented 7 years ago

Right now only the bottommost simple field is targeted for the mapping. It's better to support mapping upper level complex object so that the mapping diagram looks simpler with more complex object.

igarashitm commented 7 years ago

It looks like runtime already supports it - https://github.com/atlasmap/atlasmap/blob/master/atlas-itests-parent/atlas-itests-reference-mappings/src/test/resources/javaToJava/atlasmapping-complex-autodetect-full-actions.xml#L16

mattrpav commented 7 years ago

Note: the atlasmap engine does not support complex <-> complex mapping automatically. The specification of a complex class in the definition above is used in order to specify the concrete complex object to be instantiated in order to satisfy the rest of the child mappings.

mattrpav commented 7 years ago

Discussed: Create a UI handler that would support auto-mapping of same or reasonably similar complex objects by automatically creating the list of child mappings as a convenience to the end-user.

Note: I recommend using individual mappings in order to support per-field actions