users@jersey.java.net

[Jersey] Re: Forcing Jackson to ignore 'type' properties for polymorphic types with Jersey

From: Tatu Saloranta <tsaloranta_at_gmail.com>
Date: Sun, 6 May 2012 11:19:22 -0700

On Fri, May 4, 2012 at 1:45 PM, Julien Dreux <jdreux_at_justlexit.com> wrote:
> Hi all,
>
> I am using an abstract class to localize my models to different languages.
> This is the inheritance chain that I have set up:
>
> //Base model, contains localized fields

Ok thanks. Two things that would help:

(a) Trying out equivalent case with Jackson annotations, removing JAXB
ones -- this just to eliminate/confirm possibility that problem is
with JAckson's JAXB annotation handling
(b) File a bug report, depending on which area seems to be problematic:
  - JAXB -> https://github.com/FasterXML/jackson-module-jaxb-annotations
  - Databind -> https://github.com/FasterXML/jackson-databind

I don't see a specific problem with class definitions, but I'll try
re-reading code and will send an update if I do uncover something. My
initial guess is that JAXB annotation handling may be causing the
issues here.

-+ Tatu +-