I am using RDMS and Ignite Integration https://apacheignite-mix.readme.io/v1.7/docs/automatic-persistence to transform each table record into POJO and put the POJO into Ignite Cache.
I want to change the type of a column to anther type for the corresponding field in POJO.
For example, I want to change the BIRTH_DAY column which is string type is db to the corresponding field which is java.sql Date in POJO.
I would ask how to this? Can I do the conversion logic in the CacheConfig code side?
Following is piece of the code that do the mapping between column name and POJO field name,but it looks that I can't add in the conversion logic?
// Value fields for TBL_PERSON
Collection<JdbcTypeField> vals = new ArrayList<>();
vals.add(new JdbcTypeField(Types.INTEGER, "ID", int.class, "id"));
vals.add(new JdbcTypeField(Types.VARCHAR, "NMAE", String.class, "name"));
vals.add(new JdbcTypeField(Types.VARCHAR, "BIRTHDAY", String.class, "birthday"));