Many to one transformations [message #634655] |
Fri, 22 October 2010 11:13  |
Eclipse User |
|
|
|
Hi,
How does one do many to one transformations in ETL; that is
transformations where many elements in a source model contribute to one
element in the target model without actually producing a directly
matching element in the target model? In particular, I would like this
one target model element to be included in the result of any calls to
equivalent().
Clearly, I cannot write a rule for any of these source-model elements as
this would always create at least one target model element for each
source model element.
I have been thinking of manipulating the transformation trace to pretend
this single target model element has been generated from all of these
source models, but from my initial inspection of the ETL source code I
am not sure there is a safe way of doing so.
I'm probably missing a very obvious solution here, but what is it?
Cheers,
Steffen
|
|
|
Re: Many to one transformations [message #634656 is a reply to message #634655] |
Fri, 22 October 2010 11:33  |
Eclipse User |
|
|
|
Hi Steffen,
To summarise our chat - just in case somebody else comes across this
issue in the future - there's no built-in mechanism in ETL that would
support such transformations so I guess it will need to be done the hard
way (using operations).
Cheers,
Dimitris
Steffen Zschaler wrote:
> Hi,
>
> How does one do many to one transformations in ETL; that is
> transformations where many elements in a source model contribute to one
> element in the target model without actually producing a directly
> matching element in the target model? In particular, I would like this
> one target model element to be included in the result of any calls to
> equivalent().
>
> Clearly, I cannot write a rule for any of these source-model elements as
> this would always create at least one target model element for each
> source model element.
>
> I have been thinking of manipulating the transformation trace to pretend
> this single target model element has been generated from all of these
> source models, but from my initial inspection of the ETL source code I
> am not sure there is a safe way of doing so.
>
> I'm probably missing a very obvious solution here, but what is it?
>
> Cheers,
>
> Steffen
|
|
|
Powered by
FUDForum. Page generated in 0.03231 seconds