Hi Barbara,

according to XML schema definition the value range of xs:Integer, xs:positiveInteger and xs:negativeInteger is required to support a value range similar to java long. Therefore we changed code generated for those schema types from int to long between 1.0.5 and 1.1. Having said that we haven't seen a chance for backward compatibility here.

Let's see if someone else knows why 1.0.5 is not able to read binding.

Regards
Ralf


Barbara Allori schrieb:
Hi,

I am using Castor-codGen-1.1 to do data binding and everything work fine.
But I can't use this version because this version uses a long instead of an int.

For example, if I have this attribute:

<xs:attribute name="numeroLivello" type="xs:positiveInteger" use="required"/>

with castor 1.0.5 I obtain a field like this:

   /**
    * Field _numeroLivello
    */
   private int _numeroLivello;

and with castor 1.1 I obtain a field like this:

   /**
    * Field _numeroLivello
    */
   private long _numeroLivello;

Anothe issue is that with castor 1.0.5 I am not able to use a data binding as castor tells me:

--Unable to load binding file 'C:\temp\binding.xml' due to the following Exception:
--------------------------------
Stack Trace for :unable to find FieldDescriptor for 'enumBinding' in ClassDescri
ptor of binding{file: file:///C:/temp/binding.xml; line: 9; column: 38}


So, I can use castor 1.1, but I need to maintain an 'int', or I can use castor 1.0.5, but I need to know how use a data binding.
What can I do?

I apologize for my english!

Thank's
Barbara

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

   http://xircles.codehaus.org/manage_email

--

Syscon Ingenieurbüro für Meß- und Datentechnik GmbH
Ralf Joachim
Raiffeisenstraße 11
72127 Kusterdingen
Germany

Tel.   +49 7071 3690 52
Mobil: +49 173 9630135
Fax    +49 7071 3690 98

Internet: www.syscon.eu
E-Mail: [EMAIL PROTECTED]

Sitz der Gesellschaft: D-72127 Kusterdingen
Registereintrag: Amtsgericht Stuttgart, HRB 382295
Geschäftsleitung: Jens Joachim, Ralf Joachim

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

   http://xircles.codehaus.org/manage_email

Reply via email to