I see your point now.

I think it is reasonable to have something that works out of the box even
if it will uses reflection.
And user could implement  custom logic if needed.
We will implement default transformer for all known cases.

On Tue, Jul 5, 2016 at 12:02 AM, Dmitriy Setrakyan <dsetrak...@apache.org>
wrote:

> On Mon, Jul 4, 2016 at 3:49 AM, Alexey Kuznetsov <akuznet...@gridgain.com>
> wrote:
>
> > Dmitry,
> >
> > > Hm… Why don’t you use reflection to handle such types? If the driver is
> > > there, then load the class, otherwise don’t?
> > Yes, we could fix this issue with reflection. But I'm afraid that we will
> > end up with "dirty" code.
> > Also  with custom transformer user will be able to implement its own
> custom
> > logic. For example transform string "YES" to boolean true.
> >
>
> The difference here is automatic vs. manual. I agree that we should have a
> transformer, but we should still provide automatic mappings for some types
> using reflection, as in most cases no additional logic will be required.
> No?
>
>

-- 
Alexey Kuznetsov

Reply via email to