Keith,
Please see inline...

> -----Original Message-----
> From: Keith Visco [mailto:[EMAIL PROTECTED] 
> Sent: Saturday, February 26, 2005 7:21 PM
> To: [email protected]
> Subject: Re: [castor-user] [XML] Why Castor iterates 
> transient collection field?
> 
> 
> Emir,
> 
> What version of Castor are you using? There was a bug in the 
> past where the <bind-xml> element didn't inherit properly 
> from the <field> element, but I just tried it with 0.9.6 and 
> it seems to be working for me.

It should be 0.9.6, but I'll check on Monday.
Actually, my colleague had this problem (I'm doing the JDO part) and we
solved the problem by adding transient="true" to bind-xml.
But, all he can have running is either 0.9.5.3 or 0.9.6.


> 
> Also how are you loading the mapping file? If the mapping 
> file is loaded first via Castor JDO before being used by 
> Castor XML maybe some data is getting lost there. I'm not 
> really sure about that, I'm just trying to speculate as I'm 
> not aware of any open issues on that.
> 
> --Keith

No, defferent mapping files are used for JDO and XML part.

Thanks and regards,
Emir




> 
> 
> Emir Causevic wrote:
> > 
> > Hi Keith,
> > Here's what caused the problem.
> > At the Castor homepage, XML Mapping section (3.5 The <bind-xml> 
> > element), it
> > states:
> > 
> > -   transient: Allows for making this field transient for XML. The
> > default value is inherited from the <field> element.
> > 
> > In fact, transient isn't inherited from the <field> element. 
> > The problem was that in our XML mappping file, only the <field> 
> > element was marked transient.
> > The problem vanished when I added transient="true" to the 
> <xml-bind> 
> > element.
> > 
> > Thank you (and to Werner also),
> > Emir
> >  
> > 
> > 

> 



----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-user

Reply via email to