Problems with model new elements ... [message #57939] |
Tue, 14 August 2007 21:49 |
Eclipse User |
|
|
|
Originally posted by: macf1983.gmail.com
Hi guys
I'm with a problem with how define a rule for this m2m transformation.
Here's the situation's core:
1) There's a model A with 2 classes: A1 and A2
2) There's a model B, that is almost the same of model A , except by one
more class B that have 2 attributes: an A1 object and an A2 object
How do I define a transformation rule from A to B that gives [having as
entrance a model's A instance] as result a model's B instance that keeps
the same instances of classes A1 and A2 contained in model's A instance,
but as attributes of a class B object created during the transformation ?
[By the way, is there a best way[rule] to create this object B during the
transformation ?]
I hope everyone have understood what I try to explain about this problem I
have.
Sorry if I've committed any grammatical error ...
|
|
|
Powered by
FUDForum. Page generated in 0.02758 seconds