Thank you, Vitaly, will give that a go. On Mon, Feb 22, 2016 at 9:54 AM, Vitaly E <13vitam...@gmail.com> wrote:
> Hi Cosmin, > > Have a look at com.basho.riak.client.api.convert.ConverterFactory. It's a > singleton, you can register a custom converter there (the default for > classes other than String and RiakObject is > com.basho.riak.client.api.convert.JSONConverter). > > It's also possible to pass a custom converter to the FetchValue API, for > instance via > com.basho.riak.client.api.commands.kv.KvResponseBase.getValues(com.basho.riak.client.api.convert.Converter<T>). > > I think this is the right way to add custom serialization. > > Regards, > Vitaly > > On Mon, Feb 22, 2016 at 11:29 AM, Cosmin Marginean < > cos.margin...@gmail.com> wrote: > >> Hi >> >> I presume that Riak Java client is using Jackson for JSON-to-POJO and >> vice versa. >> >> Is there a way to easily inject a custom object mapper there? Or at least >> to get a reference to it in order to add custom serializers? >> >> Thank you >> Cosmin >> >> _______________________________________________ >> riak-users mailing list >> riak-users@lists.basho.com >> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com >> >> >
_______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com