[
https://issues.jboss.org/browse/TEIIDDES-1264?page=com.atlassian.jira.plu...
]
Randall Hauch updated TEIIDDES-1264:
------------------------------------
Description:
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:
{code:xml}
...
<annotations xmi:uuid="mmuuid:22f9f08a-6500-4367-820d-d78d36cd3091">
<annotatedObject
href="Oracle_BQT.xmi#mmuuid/73035cf1-37c8-4d55-b318-bc55f7b81d42"/>
</annotations>
...
{code}
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:
{code:xml}
<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&qu...
<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-...
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>
...
{code}
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:
{code:xml}
...
<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">
...
{code}
was: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.
Creating virtual model creates annotation object for physical model
-------------------------------------------------------------------
Key: TEIIDDES-1264
URL:
https://issues.jboss.org/browse/TEIIDDES-1264
Project: Teiid Designer
Issue Type: Bug
Affects Versions: 7.4.2
Reporter: Randall Hauch
Attachments: mode_test.zip
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:
{code:xml}
...
<annotations xmi:uuid="mmuuid:22f9f08a-6500-4367-820d-d78d36cd3091">
<annotatedObject
href="Oracle_BQT.xmi#mmuuid/73035cf1-37c8-4d55-b318-bc55f7b81d42"/>
</annotations>
...
{code}
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:
{code:xml}
<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&qu...
<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-...
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>
...
{code}
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:
{code:xml}
...
<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">
...
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira