users@jersey.java.net

Re: [Jersey] XmlTransient annotation not working

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Fri, 23 Apr 2010 10:27:33 +0200

On Apr 23, 2010, at 9:16 AM, Jakub Podlesak wrote:

>
> For JAXB based processors, that would be a bug. Do you see the
> property
> generated also for XML output?
>
> Otherwise, if you are using the Jackson based procesor,
> (just looking at the Jackson javadocs),
> there should be a @JsonIgnore annotation available
> for this purpose i guess.
>

I think Jackson supports some of the JAXB annotations, @XmlTransient
might be one of them.

Paul.

> ~Jakub
>
> Rahul Joshi wrote:
>> Hi,
>>
>> The bean that I am using for JSON output contains few properties
>> which I don't want to return to client.
>> I have used @XmlTransient annotation for those properties but still
>> those field appears in the JSON output.
>>
>> Is there any other way of ignoring the properties.
>>
>> Thanks
>> -Rahul
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>