users@jersey.java.net

Re: [Jersey] Re: Returning an abstract class through a Jersey restful service

From: Moises Lejter <moilejter_at_gmail.com>
Date: Sun, 11 Apr 2010 05:14:04 -0500

As a simple workaround, you could use the @XmlTransient annotation that indicate which fields of the Java object to neglect to marshall into the XML representation.

Moises

On Apr 10, 2010, at 6:25 AM, schong wrote:

>
> Thanks Marc. I tried putting the annotation on the GMDevice and the
> marshalling works.
>
> I think I am going to have to rethink the idea of annotating the Enitity
> classes and sending them out through the service - I'm trying to return a
> common XML format but the Entity classes I want to return are quite
> different and contain info that I don't want to pass out.
>
> Thanks again,
> Steve
> --
> View this message in context: http://n2.nabble.com/Returning-an-abstract-class-through-a-Jersey-restful-service-tp4876155p4881607.html
> Sent from the Jersey mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>