users@jaxb.java.net

Re: Adding field without marshalled???

From: Eric Crampton <ericcrampton_at_gmail.com>
Date: Fri, 8 Dec 2006 09:15:13 -0800

Hi Heru,

You can use the @XmlTransient annotation:

http://java.sun.com/javaee/5/docs/api/javax/xml/bind/annotation/XmlTransient.html

--Eric

On 12/8/06, HeruMartinus.Salim_at_infineon.com
<HeruMartinus.Salim_at_infineon.com> wrote:
> Hi,
>
> Can I add a field inside a generated class, which not gonna be
> marshalled?
> This field just used to provide information.
>
> So the field will not be inside the propOrder annotation.
> But when I try to run, JAXB "complained".
> Can we just ignore this?
>
> Regards,
> Heru
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
>