users@jersey.java.net

Exclude a getter from the output

From: Comerford, Sean <Sean.Comerford_at_espn3.com>
Date: Wed, 23 Sep 2009 21:43:25 +0000

So another (probably stupid) newbie question - probably more JAXB than
Jersey but here goes:

I have a POJO that I want Jersey to marshal to XML/JSON so I put
@XmlRootElement on it and voila (very cool).

But it has some methods that I do NOT want marshaled.

How do I annotate those such that Jersey / JAXB will not include them in the
output?

-- 
Sean Comerford, Software Engineer
ESPN.com Site Architecture Group
Office: 860.766.6454    Cell: 860.329.5842