Barbara,

Ralf has already provided you with an answer to the <xs:integer> change (that 
unfortunately happens to be backwards-incompatible). As to your mapping 
problem, there have been identical questions already here and in Jira. When 
working towards Castor 1.1, we decided to normalize the way bindings are 
provided by requiring a leading '/' for any binding, incl. complexType 
bindings, etc.

Can you give me a short sample of a binding that does not work anymore ? 

Werner

PS And please, don't start apologizing for your language skills ... ;-). 
Otherwise I'd have to apologize for not being able to rispondere in Italiano, 
as much as I would want to.

> -----Ursprüngliche Nachricht-----
> Von: Barbara Allori [mailto:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 26. April 2007 15:26
> An: [email protected]
> Betreff: [castor-user] SourceGenerator and binding
> 
> 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


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

    http://xircles.codehaus.org/manage_email

Reply via email to