You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Andy Grove (JIRA)" <tu...@ws.apache.org> on 2007/04/23 20:13:15 UTC
[jira] Created: (TUSCANY-1223) XSD base64Binary type mapping to
wrong SDO type
XSD base64Binary type mapping to wrong SDO type
-----------------------------------------------
Key: TUSCANY-1223
URL: https://issues.apache.org/jira/browse/TUSCANY-1223
Project: Tuscany
Issue Type: Bug
Components: Java SDO Implementation
Reporter: Andy Grove
Priority: Minor
The XSD base64Binary type should map to the SDO type commonj.sdo#Bytes but Tuscany is mapping it to commonj.sdo#Base64Bytes which is not mentioned in the SDO specification.
This is demonstrated in the CTS in XSDComplexTypeTest.testTC297ComplexTypeContainingElementsOfAllTypes
--
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
[jira] Updated: (TUSCANY-1223) XSD base64Binary type mapping to
wrong SDO type
Posted by "Fuhwei Lwo (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Fuhwei Lwo updated TUSCANY-1223:
--------------------------------
Attachment: 1223.patch
In order to comply to SDO 2.1 spec, I have removed the new SDO Base64Binary type that was mapped to XSD base64Binary type. Based on the spec, both XSD base64Binary and hexBinary types are mapped to SDO Bytes type. In order to distinguish between Bytes for base64Binary and Bytes for hexBinary, I added an annotation to the property (type==base64Binary) during loading the metadata. Later on, I fixed the loader and serializer to handle the property value based on the new annotation. I also included two test cases to test out both base64Binary and hexBinary types properties.
Please review. Thanks.
Fuhwei Lwo
> XSD base64Binary type mapping to wrong SDO type
> -----------------------------------------------
>
> Key: TUSCANY-1223
> URL: https://issues.apache.org/jira/browse/TUSCANY-1223
> Project: Tuscany
> Issue Type: Bug
> Components: Java SDO Implementation
> Reporter: Andy Grove
> Priority: Minor
> Attachments: 1223.patch
>
>
> The XSD base64Binary type should map to the SDO type commonj.sdo#Bytes but Tuscany is mapping it to commonj.sdo#Base64Bytes which is not mentioned in the SDO specification.
> This is demonstrated in the CTS in XSDComplexTypeTest.testTC297ComplexTypeContainingElementsOfAllTypes
--
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
[jira] Commented: (TUSCANY-1223) XSD base64Binary type mapping to
wrong SDO type
Posted by "Fuhwei Lwo (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12491360 ]
Fuhwei Lwo commented on TUSCANY-1223:
-------------------------------------
This is a SDO 2.1 spec bug that has been opened against the spec. The reason we are mapping XSD base64Binary to SDO Base64Bytes is the mapping to SDO Bytes has been used to map to XSD hexBinary. We are one step ahead of the spec.
Fuhwei
> XSD base64Binary type mapping to wrong SDO type
> -----------------------------------------------
>
> Key: TUSCANY-1223
> URL: https://issues.apache.org/jira/browse/TUSCANY-1223
> Project: Tuscany
> Issue Type: Bug
> Components: Java SDO Implementation
> Reporter: Andy Grove
> Priority: Minor
>
> The XSD base64Binary type should map to the SDO type commonj.sdo#Bytes but Tuscany is mapping it to commonj.sdo#Base64Bytes which is not mentioned in the SDO specification.
> This is demonstrated in the CTS in XSDComplexTypeTest.testTC297ComplexTypeContainingElementsOfAllTypes
--
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
[jira] Resolved: (TUSCANY-1223) XSD base64Binary type mapping to
wrong SDO type
Posted by "Frank Budinsky (JIRA)" <tu...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-1223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Frank Budinsky resolved TUSCANY-1223.
-------------------------------------
Resolution: Fixed
Fixed in revision 535315.
I found a much simpler way to do this: set the underlying EType for base64Binary to be the EMF Base64Binary type and then override AttributeImpl.getType().
> XSD base64Binary type mapping to wrong SDO type
> -----------------------------------------------
>
> Key: TUSCANY-1223
> URL: https://issues.apache.org/jira/browse/TUSCANY-1223
> Project: Tuscany
> Issue Type: Bug
> Components: Java SDO Implementation
> Reporter: Andy Grove
> Priority: Minor
> Attachments: 1223.patch
>
>
> The XSD base64Binary type should map to the SDO type commonj.sdo#Bytes but Tuscany is mapping it to commonj.sdo#Base64Bytes which is not mentioned in the SDO specification.
> This is demonstrated in the CTS in XSDComplexTypeTest.testTC297ComplexTypeContainingElementsOfAllTypes
--
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