dev@jsr311.java.net

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

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

On 4/12/07, Heiko Braun <hbraun_at_redhat.com> 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.


Heiko:

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."

Dhanji.