[ 
http://issues.apache.org/jira/browse/TUSCANY-20?page=comments#action_12364836 ] 

Frank Budinsky commented on TUSCANY-20:
---------------------------------------

I added support for some of the sdo XSD annotaions (e.g., sdoXML:propertyType 
and sdoJava:instanceClass). Registering the standard types by default is still 
TBD.


> Default SDO 2 types not available or working correctly
> ------------------------------------------------------
>
>          Key: TUSCANY-20
>          URL: http://issues.apache.org/jira/browse/TUSCANY-20
>      Project: Tuscany
>         Type: Bug
>   Components: Java SDO Implementation
>     Reporter: Brent Daniel

>
> The commonj.sdo data types are not available by default through the 
> TypeHelper. 
> They can be loaded in using XSDHelper.define() with the sdoModel.xsd file. 
> However, the default instance class for commonj.sdo.Integer is 
> java.math.BigInteger. Calling DataObject.set(property, value) where property 
> is of type commonj.sdo.Integer and value is a java.lang.Integer will fail 
> with a ClassCastException. 
> Modifying the instance class in the sdoModel.xsd will not solve this, as the 
> instanceClass attribute is being ignored and the runtime will default to 
> BigInteger. XSDEcoreHelper is looking for the instanceClass attribute in the 
> Ecore namespace but it is defined in the commonj.sdo/java namespace. 

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

Reply via email to