Skip to main content


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 15:13 Go to next message
Steffen Zschaler is currently offline Steffen ZschalerFriend
Messages: 266
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 15:33 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
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: Fri Apr 19 22:24:38 GMT 2024

Powered by FUDForum. Page generated in 0.03167 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top