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? > > > Agree. How will the transformer be specified in configuration? > I'm planning to add getter and setter on CacheJdbcPojoStoreFactory. The > same way as for example: JdbcTypeHasher. > > > -- > Alexey Kuznetsov >