Deep Cloning Source Elements [message #519682] |
Tue, 09 March 2010 11:58  |
Eclipse User |
|
|
|
I wish to use the 'hybrid' approach ETL for M2M transformation. My source and target meta-models are similar, and for much of the translation I could deep clone the source elements for use in the target. Is there a feature available that allows me to do this easily, without manually constructing a duplicate?
|
|
|
|
|
|
Re: Deep Cloning Source Elements [message #519878 is a reply to message #519875] |
Wed, 10 March 2010 05:31  |
Eclipse User |
|
|
|
Hi Andy,
I see. In this case you'll need to write a custom EOL operation that
clones the elements of interest. If you could send me (dskolovos _ gmail
_ com) your source and target metamodels and a short description of what
you're trying to achieve I may be able to propose other workarounds too.
Cheers,
Dimitris
Andy wrote:
> Hi Dimitrios,
>
> further to my recent post; it would appear that the transformation
> generated does not create deep clones. I'll explain why I would find
> deep cloning useful. In my transformation a source node (with its
> sub-tree) is used in more than one node in the target. The target nodes
> that use the source node require a copy of the original source node (and
> its sub-tree). Therefore I wish to have deep clones of a particular
> source node to insert into various target nodes.
> Cheers, Andy
--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
|
|
|
Re: Deep Cloning Source Elements [message #587336 is a reply to message #519875] |
Wed, 10 March 2010 05:31  |
Eclipse User |
|
|
|
Hi Andy,
I see. In this case you'll need to write a custom EOL operation that
clones the elements of interest. If you could send me (dskolovos _ gmail
_ com) your source and target metamodels and a short description of what
you're trying to achieve I may be able to propose other workarounds too.
Cheers,
Dimitris
Andy wrote:
> Hi Dimitrios,
>
> further to my recent post; it would appear that the transformation
> generated does not create deep clones. I'll explain why I would find
> deep cloning useful. In my transformation a source node (with its
> sub-tree) is used in more than one node in the target. The target nodes
> that use the source node require a copy of the original source node (and
> its sub-tree). Therefore I wish to have deep clones of a particular
> source node to insert into various target nodes.
> Cheers, Andy
--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
|
|
|
Powered by
FUDForum. Page generated in 0.26407 seconds