[ 
https://issues.apache.org/jira/browse/TUSCANY-1325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12501635
 ] 

Fuhwei Lwo commented on TUSCANY-1325:
-------------------------------------

Here is related information from the Tuscany dev-list.

Handling this in the same way as we handled base64Binary sounds right 
to 
me. We didn't override createFromString and convertToString, however. 
We 
simply mapped internally to the EMF base64Binary type and let EMF 
handle 
it in its default way. 

Note that the code to make this work is in AttributeImpl.getType() and 
in 
SDOXSDEcoreBuilder.getBuiltInEClassifier().

Thanks,
Frank.

Fuhwei Lwo <[EMAIL PROTECTED]> wrote on 06/04/2007 04:23:15 PM:

> I believe we have a bug in loading/saviing xsd:QName property value.
> Based on SDO 2.1 spec section 9.4.1, proper conversion should take 
> place. Unfortunately, Tuscany SDO is not doing any conversion today.
> If no one objects, I will open a JIRA.
> 
> When I started to look into possible solution for this problem, I 
> discovered both xsd:anyURI and xsd:QName are mapped to SDO URI type.
> This is similar to JIRA 1223 Frank has fixed for xsd:base64Binary 
> and xsd:hexBinary. I think we can copy what 1223 has done by 
> internally mapping xsd:QName to SDO QName type then in the 
> SDOXMLResourceImpl$SDOXMLHelperImpl, override createFromString and 
> convertToString for deserialization and serialization respectively.
> 
> Let me know if this proposed solution makes sense.
> 
> Fuhwei

> Property value with xsd:QName type is not deserialized and serialized 
> correctly
> -------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1325
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1325
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Implementation
>    Affects Versions: Java-SDO-M2
>         Environment: WinXP
>            Reporter: Fuhwei Lwo
>
> Current SDO implementation doesn't convert property value with xsd:QName type 
> at all. The value is treated as a plain string without any conversion. The 
> conversion should take place based on SDO 2.1 spec section 9.4.1.

-- 
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]

Reply via email to