ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexey Kuznetsov <akuznet...@gridgain.com>
Subject Re: Custom transformer for CacheJdbcPojoStore
Date Tue, 05 Jul 2016 09:25:48 GMT
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 <dsetrakyan@apache.org>
wrote:

> On Mon, Jul 4, 2016 at 3:49 AM, Alexey Kuznetsov <akuznetsov@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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message