-
Bug
-
Resolution: Cannot Reproduce
-
Major
-
None
-
7.4.2
-
None
-
None
Using New Teiid Model -> transform from existing model and picked the physical model resulted in a virtual model that contains an (empty) annotation with the physical model object as the target of the annotated object. A model should never contain an annotation on an object in another model.
The "oraclev.xmi" file in the attached "mode_test.zip" contain the following lines:
... <annotations xmi:uuid="mmuuid:22f9f08a-6500-4367-820d-d78d36cd3091"> <annotatedObject href="Oracle_BQT.xmi#mmuuid/73035cf1-37c8-4d55-b318-bc55f7b81d42"/> </annotations> ...
Notice how the annotatedObject's href attribute points to the object with the UUID "73035cf1-37c8-4d55-b318-bc55f7b81d42". The Oracle_BQT.xmi file contains this object:
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:diagram="http://www.metamatrix.com/metamodels/Diagram" xmlns:jdbc="http://www.metamatrix.com/metamodels/JDBC" xmlns:mmcore="http://www.metamatrix.com/metamodels/Core" xmlns:relational="http://www.metamatrix.com/metamodels/Relational"> <mmcore:ModelAnnotation xmi:uuid="mmuuid:73035cf1-37c8-4d55-b318-bc55f7b81d42" primaryMetamodelUri="http://www.metamatrix.com/metamodels/Relational" modelType="PHYSICAL" maxSetSize="1000" ProducerName="Teiid Designer" ProducerVersion="7.4.2.v20120117-1612-H706-M"> <modelImports xmi:uuid="mmuuid:274ea9f7-1c18-46e8-80e5-3fbfa623b66b" name="SimpleDatatypes-instance" modelLocation="http://www.metamatrix.com/metamodels/SimpleDatatypes-instance" modelType="TYPE" primaryMetamodelUri="http://www.eclipse.org/xsd/2002/XSD"/> <modelImports xmi:uuid="mmuuid:abbdcd1b-598a-4649-a562-32224027303d" name="XMLSchema" modelLocation="http://www.w3.org/2001/XMLSchema" modelType="TYPE" primaryMetamodelUri="http://www.eclipse.org/xsd/2002/XSD"/> </mmcore:ModelAnnotation> ...
Note how the "mmcore:ModelAnnotation" object has that UUID.
Finally, here's the ModelAnnotation in the "oraclev.xmi" file, with the version that was used to create the model:
...
<mmcore:ModelAnnotation xmi:uuid="mmuuid:23ee1634-d5c8-4ec7-916f-11eee0d41ad3" primaryMetamodelUri="http://www.metamatrix.com/metamodels/Relational" modelType="VIRTUAL" ProducerName="Teiid Designer" ProducerVersion="7.4.2.v20120117-1612-H706-M">
...
- is related to
-
MODE-1414 Sequencing VDB project causes NullPointerException
- Closed