users@jersey.java.net

Re: [Jersey] Exclude a getter from the output

From: Tatu Saloranta <tsaloranta_at_gmail.com>
Date: Wed, 23 Sep 2009 22:57:10 -0700

On Wed, Sep 23, 2009 at 2:58 PM, Arul Dhesiaseelan <arul_at_fluxcorp.com> wrote:
> You may want to add the @XmlTransient JAXB annotation to mark it as
> transient.

That's probably the best way. Another feature (sometimes nuisance) of
JAXB is that it seems to requires setter/getter pairs; so if you don't
have matching setter, getter is ignored as well.
So you could omit having setter, or name it as something other than setXxx().

-+ Tatu +-