[ http://issues.apache.org/jira/browse/TUSCANY-519?page=all ] Frank Budinsky resolved TUSCANY-519: ------------------------------------
Resolution: Duplicate see TUSCANY-521. > Mapping <xsd:choice> into properties with names starting with 'group' > --------------------------------------------------------------------- > > Key: TUSCANY-519 > URL: http://issues.apache.org/jira/browse/TUSCANY-519 > Project: Tuscany > Type: Sub-task > Components: Java SDO Tools > Versions: Java-Mx > Reporter: Venkatakrishnan > > 1. The group element <xsd:choice> results in a property whose name starts > with 'group' (e.g. group or group1 ....) in the generated SDO type. Mapping > this back to XSD results in the creation of a element. > Workaround : Again as in the case of mixed content, we can choose to ignore > properties starting with the name 'group' or properties whose type is an > EFeatureMapEntry. As mentioned in the subtask 2, this is a patchy fix that > will not work for all cases. > 2. There is no information about the contents of the group. The hierarchy > information as it existed from the original xsd from which the SDOs were > generated is obscured and all contents are flattened out into the complex > type that contains the <xsd:choice>. So if the containing complex type > contains two groups of type <xsd:choice> there is no means to find the > elements within each of these groups. The SDO type will only contain a list > of properties that is a union of all elements within the choices. Am I > missing out something here? -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]