| Transforming from ecore to a genmodel-like configuration model [message #585040] |
Mon, 25 January 2010 16:18  |
Eclipse User |
|
|
|
Hi,
I have created a metamodel with one eclass named eclass2record to help me manage the transformation process.
The goal is to created a doctrine model (expressed in doctrine.ecore) from an ecore model.
To achieve this, I have created the eclass2record; basically all eclasses have a eclass2record, and the eclass2record instance have to be linked with the eclass.
So in the transformation I have written this :
rule ecore2ecore2doctrine
transform i : ecore!EClass
to o : ecore2doctrine!EClass2Record
{
o.name = i.name;
o.eclass = i;
}
It generates me the .xmi file as requested with all eclass2record objects with correct names, but there is no eclass relation set up between eclass2record instances and their relative eclass.
Someone have a clue ?
Thanks !
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03255 seconds