You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Yang ZHONG (JIRA)" <tu...@ws.apache.org> on 2006/08/04 20:40:14 UTC
[jira] Commented: (TUSCANY-576) Bad java class name when XSD name
contains dot ('.') characters.
[ http://issues.apache.org/jira/browse/TUSCANY-576?page=comments#action_12425813 ]
Yang ZHONG commented on TUSCANY-576:
------------------------------------
XSD type, element and attribute names are all xsd:NCName, that means we need to map xsd:NCName to Java class and method name for static SDO type and property.
I'll look into the name mapping and code generation.
> Bad java class name when XSD name contains dot ('.') characters.
> ----------------------------------------------------------------
>
> Key: TUSCANY-576
> URL: http://issues.apache.org/jira/browse/TUSCANY-576
> Project: Tuscany
> Issue Type: Bug
> Components: Java SDO Tools
> Affects Versions: Java-M2
> Reporter: Mauro Franceschini
>
> I've generated java interface and classes starting from an XML Schema file that contains the following complex type declaration:
> <xs:complexType name="CBIBonOrd.001.03">
> The result is a java source file named CBIBonOrd.001.03.java that has a wrong name "CBIBonOrd.001.03".
--
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
Re: [jira] Commented: (TUSCANY-576) Bad java class name when XSD name contains dot ('.') characters.
Posted by Jeremy Boynes <jb...@apache.org>.
On Aug 4, 2006, at 12:23 PM, Fuhwei Lwo wrote:
> I have verified it works and make a comment in the JIRA.
Thanks Fuhwei.
Yang, does this resolve the issue and can we close the JIRA?
--
Jeremy
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
Re: [jira] Commented: (TUSCANY-576) Bad java class name when XSD name contains dot ('.') characters.
Posted by Fuhwei Lwo <fu...@bricemedia.com>.
I have verified it works and make a comment in the JIRA.
Fuhwei Lwo
Jeremy Boynes <jb...@apache.org> wrote: On Aug 4, 2006, at 11:59 AM, Fuhwei Lwo wrote:
> I remember a discussion in the past mentioned to use SDO annotation
> in the XSD to override the default type name for SDO codegen tool,
> e.g. sdoXML:name="MyNewTypeName".
>
> Can anyone verify whether this is working? Thanks.
How about giving it a go and posting the results here?
--
Jeremy
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
Re: [jira] Commented: (TUSCANY-576) Bad java class name when XSD name contains dot ('.') characters.
Posted by Jeremy Boynes <jb...@apache.org>.
On Aug 4, 2006, at 11:59 AM, Fuhwei Lwo wrote:
> I remember a discussion in the past mentioned to use SDO annotation
> in the XSD to override the default type name for SDO codegen tool,
> e.g. sdoXML:name="MyNewTypeName".
>
> Can anyone verify whether this is working? Thanks.
How about giving it a go and posting the results here?
--
Jeremy
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
Re: [jira] Commented: (TUSCANY-576) Bad java class name when XSD name contains dot ('.') characters.
Posted by Fuhwei Lwo <fu...@bricemedia.com>.
I remember a discussion in the past mentioned to use SDO annotation in the XSD to override the default type name for SDO codegen tool, e.g. sdoXML:name="MyNewTypeName".
Can anyone verify whether this is working? Thanks.
Regards,
Fuhwei Lwo
"Yang ZHONG (JIRA)" <tu...@ws.apache.org> wrote: [ http://issues.apache.org/jira/browse/TUSCANY-576?page=comments#action_12425813 ]
Yang ZHONG commented on TUSCANY-576:
------------------------------------
XSD type, element and attribute names are all xsd:NCName, that means we need to map xsd:NCName to Java class and method name for static SDO type and property.
I'll look into the name mapping and code generation.
> Bad java class name when XSD name contains dot ('.') characters.
> ----------------------------------------------------------------
>
> Key: TUSCANY-576
> URL: http://issues.apache.org/jira/browse/TUSCANY-576
> Project: Tuscany
> Issue Type: Bug
> Components: Java SDO Tools
> Affects Versions: Java-M2
> Reporter: Mauro Franceschini
>
> I've generated java interface and classes starting from an XML Schema file that contains the following complex type declaration:
>
> The result is a java source file named CBIBonOrd.001.03.java that has a wrong name "CBIBonOrd.001.03".
--
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org