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

From: Jerome Louvel <>
Date: Thu, 12 Apr 2007 08:59:17 +0200

Hi Heiko,

> > @MediaType
> > public String getMimeType() {...}
> >
> Doesn't this clash with Representations that rely on annotations
> themselves? I.e. what happens to JAXB annotated classes when
> you try to
> serialize them and the include a @MediaType property?
> I think it will be serialized as well, but this is probably
> not desired
> behaviour.
> This probably requires a closer look when thinking about
> serializer/deserializer strategies in general.

As annotations, like classes, live in namespaces, my expectation is that
JAXB will just ignore annotations that are not part of its namespace.

Best regards,