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.