Hi,
I am starting with XMLBeans and just hit the wall. I have a XSD schema with an
element defined:
<xs:element name="year" nillable="true">
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:totalDigits value="4"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
The resulting "year" property in the generated bean gets "int" type - because
of the totalDigits restriction (if I understand correctly) - without the
restriction it becomes a BigInteger. Now, if I want to have an empty "year"
element, I have to call setNilYear(), which is less comfortable than just
calling setYear(null). Moreover, because the data for the bean comes from a
webform, I am forced to explicitly check if the data is null. Can I somehow
influence the code generator to generate BigInteger regardless of the
restriction?
Help?
Regards,
LL
Leszek LeszczyĆski
Hewlett - Packard
Global Delivery Application Services
Poland Center
Phone: +48 22 565 3096
E-mail: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]