Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Many to one transformations
Many to one transformations [message #634655] Fri, 22 October 2010 11:13 Go to next message
Steffen Zschaler is currently offline Steffen Zschaler
Messages: 228
Registered: July 2009
Senior Member
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 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios Kolovos
Messages: 1776
Registered: July 2009
Senior Member
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
Previous Topic:Custom Metamodel Binding for E*L
Next Topic:[ETL] Resolve Proxies
Goto Forum:
  


Current Time: Sat Aug 02 02:35:47 EDT 2014

Powered by FUDForum. Page generated in 0.01508 seconds