Menu

#15 Pls describe the components property of DelegatingCopier

v1.0_(example)
open
nobody
5
2006-03-31
2006-03-31
Garry
No

In documentation of

http://morph.sourceforge.net/reference/html/transforme
rs.html#transformers-graphs

The order in which you add the components is
different for the code vs spring mapping.

Can you describe which one is right and maybe a
pseudo code description about how the object
transformation occures with that in mind.

i.e how does it use the components order in the whole
scheme of things to ultimately transform the object.
Maybe if you put them in the right order I will
understand but now I am confused.

The order you have is:
<ref bean="personCopier"/>
<ref bean="vehicleCopier"/>
<ref bean="childrenCopier"/>
<ref bean="addressConverter"/>

so If I do the transformation you describe.

personCopier is used first then vehicleCopier

I don't see why it wouldn't use vehicleCopier for
both children and vehicles even though it wouldn't
find any matching properties for children.

Further explanation and clarification is necessary.

Discussion


Log in to post a comment.