You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Frank Budinsky (JIRA)" <tu...@ws.apache.org> on 2007/03/08 19:04:25 UTC
[jira] Resolved: (TUSCANY-1156) CodeGen generates lowercase feature
name when the schema specifies uppercase
[ https://issues.apache.org/jira/browse/TUSCANY-1156?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Frank Budinsky resolved TUSCANY-1156.
-------------------------------------
Resolution: Fixed
Committed revision 516121.
> CodeGen generates lowercase feature name when the schema specifies uppercase
> ----------------------------------------------------------------------------
>
> Key: TUSCANY-1156
> URL: https://issues.apache.org/jira/browse/TUSCANY-1156
> Project: Tuscany
> Issue Type: Bug
> Components: Java SDO Tools
> Affects Versions: Java-M2
> Environment: All
> Reporter: Hasan Muhammad
> Attachments: 1156.patch, example1156.zip
>
>
> When the schema is let us say the following
> <xsd:element name="HolderDetail" type="tns:HolderDetail"/>
> <xsd:complexType name="HolderDetail">
> <xsd:all>
> <xsd:element name="ID" type="xsd:string"/>
> </xsd:all>
> </xsd:complexType>
> The codegen tool generates the name for the feature "ID" in lower case i.e "id". Hence when we use the DataObject.setString("ID","value"), it throws the following exception because it could not find the feature ID.
> Caused by: java.lang.IllegalArgumentException: Class 'HolderDetail' does not have a feature named 'ID'
> at org.apache.tuscany.sdo.util.DataObjectUtil$Accessor.setFeatureName(DataObjectUtil.java:2069)
> at org.apache.tuscany.sdo.util.DataObjectUtil$Accessor.process(DataObjectUtil.java:2211)
> at org.apache.tuscany.sdo.util.DataObjectUtil$Accessor.init(DataObjectUtil.java:1941)
> at org.apache.tuscany.sdo.util.DataObjectUtil$Accessor.create(DataObjectUtil.java:1858)
> at org.apache.tuscany.sdo.util.DataObjectUtil.setString(DataObjectUtil.java:474)
> at org.apache.tuscany.sdo.impl.DataObjectImpl.setString(DataObjectImpl.java:566)
--
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org