2011/12/7 António Mota <amsmota_at_gmail.com>:
> Hi, thanks for your suggestions taht put me in the rigth path. In the end I
> removed the @XmlJavaTypeAdapter and added the @XmlElement with a
> type=concrete class. It's not ideal because it makes no sense to have a
> interface tied to a concrete class, but will do for now...
With Jackson you can also register sub-types with
SimpleModule.addAbstractTypeMapping() (create SimpleModule, add
mappings, call mapper.registerModule(...)), so that you don't need to
specify concrete type for property or class itself.
-+ Tatu +-