]
Barry LaFond resolved TEIIDDES-191.
-----------------------------------
Resolution: Won't Fix
this importer will be replaced with another framework
XSD as Relational importer has problems with child elements with many
parents
-----------------------------------------------------------------------------
Key: TEIIDDES-191
URL:
https://issues.jboss.org/browse/TEIIDDES-191
Project: Teiid Designer
Issue Type: Bug
Components: Import/Export
Affects Versions: 6.0.0
Environment: Teiid Designer 6.0.0 official (14 May 2009) release
Reporter: Greg Haber
Fix For: No Future
Attachments: address.xsd, person.xsd, person2.xml, person2.xsd
I've encountered a lot of problems with the Teiid Designer XML as Relational Importer
(and with its legacy ancestor) dealing with importing XSDs where a child element has
multiple parents. The importer currently treats all elements throughout the XSD that have
the same name and type as the same, and so models that element(s) as a single table with
multiple parents, if the number of parents is above a configurable number (currently
defaults to 3).
Which is all well and good in theory, but in practice it seems to hit a number of
problems
1) During the import process, if the selection of document root elements is left at the
default, not all needed tables are generated. See person.xsd example attached.
2) If all possible root elements are selected, it looks mostly right, but there are often
extra elements in the child tables (again try with person.xsd). Plus, the tables
don't actually work at runtime correctly (try using attached person2.xml as the data
source - notice that you can only get to the spouse's father from Person, not to their
own father).
I've also attached some other example problem XSDs - person2.xsd, and address.xsd
Now, in some cases a reasonable workaround is to up the number of allowed parents
parameter, so that everything gets folded into a single table. But that isn't a
general solution, as it doesn't work with things like person2.xsd.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: