Hi Scott,

what task/application did you actually use to create the XML schema ?
And can I assume that you created Java classes from the XML schema using
the XML code generator ?

If that's the case, you can set the following option

org.exolab.castor.builder.primitivetowrapper

in a custom castorbuilder.properties file and Castor will use
java.lang.Long in your case for your XML schema artefacts.

Regards
Werner

Scott Purcell wrote:
> Hello,
> 
> I am using Castor, and have created a XSD using the ant task in castor. 
> Problem is, when Castor generates Java files (marshalling) files, they are 
> of type long (primitive that is) and I would like Long java.langLong that 
> is. Object types would be the way I would like to go.
> 
> I tried changing the xsd and leaving out the "type" but then I have 
> java.lang.Object. 
> 
> Can I somehow get Long to work with Castor or XSD?
> 
> <element name="foo" type="long" /> = long primtive
> <element name="foo" /> = object type
> 
> would like Long in the java file that Castor creates.
> 
> Thanks,
> 
> 
> 
> 
> CONFIDENTIALITY NOTICE
> This e-mail message and any attachments are only for the use of the intended 
> recipient and may contain information that is privileged, confidential or 
> exempt from disclosure under applicable law. If you are not the intended 
> recipient, any disclosure, distribution or other use of this e-mail message 
> or attachments is prohibited. If you have received this e-mail message in 
> error, please delete and notify the sender immediately. Thank you.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to