Uploaded image for project: 'Teiid Designer'
  1. Teiid Designer
  2. TEIIDDES-2641

Copying Model problem

    XMLWordPrintable

Details

    • Hide
      1. import attached project
      2. right-click on project and select New > Teiid Metadata Model
      3. set new name and select Relational Model Class, View Model Type, Module Builder: "Copy from existing model of the same model class" and click Next >
      4. browse for existing: <ImportedProjectName>/views/Products_view.xmi and click OK and Finish
      5. new model will be created
      Show
      import attached project right-click on project and select New > Teiid Metadata Model set new name and select Relational Model Class, View Model Type, Module Builder: "Copy from existing model of the same model class" and click Next > browse for existing: <ImportedProjectName>/views/Products_view.xmi and click OK and Finish new model will be created

    Description

      When creating new view model by copying from existing model (see steps to reproduce), two bugs occurs.

      First:
      In Transformation Diagram of model's procedures, name of model is not updated.

      In this case "Products_view.PRODUCTDATA.NAME" should be updated to
      "<new_model_name>.PRODUCTDATA.NAME", otherwise it produce validation error.

      Additionally:
      If location of new model is different from existing model (different folder or project), import declarations to source model will be added as following:

      • import declaration to source model is added (in this case: /Dataroles/sources/Products_source.xmi)
      • concurrently, another import declaration (with name: Model Import) with error (Unable to resolve the imported model ../sources/Products_source.xmi) is added.

      Attachments

        Activity

          People

            parichar@redhat.com Paul Richardson
            skaleta@redhat.com Stanislav Kaleta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: