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

From: Heiko Braun <>
Date: Wed, 11 Apr 2007 15:50:54 +0200

> If you can annotate the representation POJOs, then you could reuse the
> @MediaType annotation on a method dynamically returning this info:
> @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

This probably requires a closer look when thinking about
serializer/deserializer strategies in general.

Regards, Heiko