Skip to main content



      Home
Home » Archived » MOFScript » Feature not found
Feature not found [message #634071] Wed, 20 October 2010 09:02 Go to next message
Eclipse UserFriend
Hi,

I am trying to transform a relational database model to text, but i get an error message when trying to load a model. I have set the NS uri of the metamodel, and used this as input to the transformation. The error message i get is:

## Loading source model - out.xmi... #Error in source model loading: Feature 'typeenum' not found.
Execution Error: org.eclipse.mofscript.runtime.MofScriptExecutionException: Missing Source Models.

I find this weird, since the feature is defined in the metamodel, like this:

<eClassifiers xsi:type="ecore:EClass" name="Table">
[...]
<eStructuralFeatures xsi:type="ecore:EReference" name="typeenum" lowerBound="1"
eType="#//TypeEnum" containment="true"/>
</eClassifiers>

So when the input file says:

<table name="UserRole" pkey="//@table.8/@cols.0">
<cols name="uuid" type="Integer"/>
<cols name="Description" type="String"/>
<typeenum>
<enumEntry enumString="UserRole"/>
</typeenum>

It should work?

Is it something that i'm missing here?

- Torbjørn
Re: Feature not found [message #635454 is a reply to message #634071] Tue, 26 October 2010 16:32 Go to previous messageGo to next message
Eclipse UserFriend
Hello Tobj
Re: Feature not found [message #637200 is a reply to message #634071] Thu, 04 November 2010 10:50 Go to previous message
Eclipse UserFriend
Somehow regenerating the model with another transformation, and copying the output to the input folder of the transformation i'm working on worked. They showed now difference when using diff on the one that works, and the one that don't. Remains quite the mystery to me..
Previous Topic:Subpackages URI problem
Next Topic:Problem with creating instances
Goto Forum:
  


Current Time: Sun Jul 13 22:31:05 EDT 2025

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

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

Back to the top