]
Barry LaFond commented on TEIIDDES-2399:
----------------------------------------
Lots of debugging and can't determine why the annotatedObject is messed up.
Decided to remove the "Copy all descriptions" check-box when transforming from
Source > View model use-case. It sort of makes sense anyway since View models are
different than Source models in their intent. In this case the annotation was copying the
connection info which isn't supported in View models.
This prevents this issue. Note that the Extension properties for View models are still
injected properly.
Creating view model from source model with generate transformations
results in orphaned annotated object reference to source
----------------------------------------------------------------------------------------------------------------------------
Key: TEIIDDES-2399
URL:
https://issues.jboss.org/browse/TEIIDDES-2399
Project: Teiid Designer
Issue Type: Bug
Components: Modeling
Affects Versions: 8.6
Reporter: Barry LaFond
Assignee: Barry LaFond
Fix For: 9.2, 9.0.3
Create a View model from a source model and choose the "Transform.." option to
generate default transformations.
The resulting View model will contain an extra <annotatedObject> reference in the
same <annotations> element as the *relational* extension model reference
{code:xml}
<mmcore:AnnotationContainer
xmi:uuid="mmuuid:9c7ac03c-bafc-4aa1-855f-4e6a43dd9c21">
<annotations xmi:uuid="mmuuid:7aeb8904-fe0c-42ac-ae67-72c8ce5b397d">
<tags xmi:uuid="mmuuid:873b6c71-41d4-476a-bf9a-442cb7fd7943"
key="modelExtensionDefinition:relational" value="relational"/>
<annotatedObject
href="XXXXXXX.xmi#mmuuid/7291fb4c-da39-4bbc-9787-d2edd9b9551c"/>
</annotations>
{code}
This won't cause problems for the View model, however if the View model is copied to
yet another view model, the Model Import for the original source model will end up in the
top level view model due to the orphaned "href=....."