The JPA component doesn't do any type conversion (based on code inspection). It assumes the object coming in is the right type. Good catch on adding the converter to the body.
John On Wed, Apr 13, 2016 at 7:18 AM Antonin Stefanutti <anto...@stefanutti.fr> wrote: > Yes, I haven’t checked the code though I guess the JPA component isn’t > doing the conversion automatically. > > Maybe that could be an enhancement to the JPA component. > > Antonin > > > On 13 Apr 2016, at 13:15, Anton <kurren...@gmail.com> wrote: > > > > When I add the following it works > > On Wed, Apr 13, 2016 at 1:04 PM, Antonin Stefanutti < > anto...@stefanutti.fr> > > wrote: > > > >> .convertBodyTo(SupportRequest.class) > >> > > > > And it doesnt when this is not included. > >