Re: Summary: Representation<T> and Entity<T>

From: Dhanji R. Prasanna <>
Date: Thu, 12 Apr 2007 18:20:23 +1000

On 4/12/07, Heiko Braun <> wrote:
> Hi Jerome,
> yes it will probably ignore that annotation,
> but the mimeType property that would still get marshalled.
> I i did get you right, the @MediaType annotated property
> should not become part of the actual (let's xml) representation on the
> wire.


Couldnt you mark it transient? JAX-B (or JibX or XStream or whatever
well-behaved serializer) should ignore the property then. The client
(requestor) knows the mediatype from http headers anyway, assuming that
we're both talking about the same "wire."