There was a problem in pre 0.9.3.21 builds when using transient on both
the field and the bind-xml. This problem was fixed in 0.9.3.21.

Note: Using transient on the field element makes the field transient for
both JDO and XML. Using transient on the bind-xml element makes the
field transient only for XML.

--Keith

Arnaud Blandin wrote:
> 
> Hi Elan,
> 
> Are you sure you are not using the static methods of the Marshalling
> Framework and that your mapping is correctly taken into account?
> 
> For removing the xsi-type you will need to use the CVS version and use
> 
> Marshaller#setSuppressXSIType(boolean)
> 
> Hope that helps,
> 
> Arnaud
> 
> > -----Original Message-----
> > From: Halfin, Elan [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, October 04, 2002 1:13 AM
> > To: [EMAIL PROTECTED]
> > Subject: [castor-dev] xml transient problem
> >
> > I marked one of my fields as transient but it still shows up in my
> > marshalled output. What am I doing wrong?
> >
> > public class X
> > {
> >     public String getCoCd() {...}
> >     public void setCoCd(String a_coCd) { ...}
> >     ....
> > }
> >
> > And my mapping file. I'm not sure why transient exists at 2 levels
> > but I
> > tried it on the field and bind-xml level separately to no avail.
> > Also, I
> > didn't see in the docs reference to <bind-xml transient="true" />
> > but saw it
> > in a previous posting.
> >
> >                 <class name="X" auto-complete="true">
> >                         <field name="CoCd" type="java.lang.String"
> > transient="true">
> >                     <bind-xml transient="true" />
> >             </field>
> >                 </class>
> >
> > Also, when I marshall can the XSI info not be generated ->
> > xsi:type="X"
> >
> >
> > Elan
> >
> > -----------------------------------------------------------
> > If you wish to unsubscribe from this mailing, send mail to
> > [EMAIL PROTECTED] with a subject of:
> >       unsubscribe castor-dev
> 
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>         unsubscribe castor-dev

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

Reply via email to