[
https://issues.apache.org/jira/browse/TUSCANY-1685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12528095
]
Kelvin Goodson commented on TUSCANY-1685:
-----------------------------------------
Any name overrides must be done with schema annotations, so the input to the
generator must contain those annotations, such as sdo:name="Bogus_1" in the
input schema. The SDO spec allows for a generator to insert annotations into an
updated schema before generating, in which case the generator must be able to
output the annotated schema, but we don't have that capacity currently.
> XSD2JavaGenerator should support name mangling (dashes to underscores, etc.)
> ----------------------------------------------------------------------------
>
> Key: TUSCANY-1685
> URL: https://issues.apache.org/jira/browse/TUSCANY-1685
> Project: Tuscany
> Issue Type: Bug
> Components: Java SDO Tools
> Affects Versions: Java-SDO-1.0
> Reporter: Ron Gavlin
> Priority: Critical
> Fix For: Java-SDO-Next
>
>
> I have the following complex type in a schema:
> <xsd:complexType name="Bogus-1">
> <xsd:sequence>
> <xsd:element name="name1" type="xsd:string"/>
> </xsd:sequence>
> </xsd:complexType>
> When I use XSD2JavaGenerator to code-generate classes for this schema, an
> invalidly named Bogus-1.java class is generated. The class name should be
> mangled into a valid Java class name, such as Bogus_1.java. EMF provides this
> behavior in its NameMangler which Tuscany currently disables.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]