You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Pim Tjeertes <Pi...@xs4all.nl> on 2007/06/06 23:27:07 UTC

Re: int 0..1 in my xsd is generated as int in Java instead of Integer

Hi Michael,

can explain why you expect an Integer object instead of an int  Java
primitive.

I would be disappointed if xmlbeans would do it the otherway around.

Kind regards, Pim

On Wed, 2007-06-06 at 21:31 +0200, Michael Mattox wrote:

> I have an XSD with int 0..1 and xmlbeans generates the java code with
> int instead of Integer.  I have tested with xfire and xfire generates
> Integer.  Anyone know why xmlbeans uses integer?  Here is the part of
> my xsd:
> 
> <element name="idProduction" type="int" maxOccurs="1"
> minOccurs="0">
> </element>
> 
> Thanks,
> Michael
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
> For additional commands, e-mail: user-help@xmlbeans.apache.org
>