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

Automatically modify a column name at creating view model from XML schema

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 7.7.2
    • Views
    • None

      Teiid designer modify column names automatically even if it's not necessary. I'll write 2 examples to describe this issue.

      1. In the case of the view model from following schema, even if there are the same column names on the different table, it is numbered automatically.
      (I think that the nameValidator object should be created as new instance every table or table's columns in GenerateVirtualFromXsdHelper.java.)

      <complexType name="table_a">
      <sequence>
      <element ref="tns:column_a" />
      <element ref="tns:column_b" />
      </sequence>
      </complexType>
      <complexType name="table_b">
      <sequence>
      <element ref="tns:column_a" />
      <element ref="tns:column_b" />
      </sequence>
      </complexType>

      2. If there is a parent element to a column like the following schema, the parent element name is added before column names.
      (See GenerateVirtualFromXsdHelper.java line 213 [2].)

      <element name="table_a">
      <complexType>
      <sequence>
      <element ref="tns:column_a"/>
      <element ref="tns:column_b"/>
      </sequence>
      </complexType>
      </element>
      <element name="table_b">
      <complexType>
      <sequence>
      <element ref="tns:column_a"/>
      <element ref="tns:column_b"/>
      </sequence>
      </complexType>
      </element>

              Unassigned Unassigned
              rhn-support-hfuruich Hisao Furuichi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: