Hello,

You can use org.apache.ignite.cache.store.jdbc.CacheJdbcBlobStore instand
of CacheJdbcPojoStore
In the case key and value will be serialized to byte array and wrote to
database (in ENTRIES table).

Other way (for CacheJdbcPojoStore) you can use java.sql.Types#ARRAY
like this
new JdbcTypeField(Types.ARRAY, "ARR", String.class, "arr"))
or in xml.


On Fri, Jul 8, 2016 at 9:22 AM, Zhengqingzheng <[email protected]>
wrote:

> Hi there,
>
> In ignite cache, I can define a list of objects as one big object and save
> into cache. However, How to enable write behind or write through to
> database, when I want to write the value list into one column cell?
>
> I know that there are jdbc mappings such as :
>
> <bean class="org.apache.ignite.cache.store.jdbc.JdbcTypeField">
>
>                                      <property name="databaseFieldType">
>
>                                                <util:constant
> static-field="java.sql.Types.SMALLINT"/>
>
>                                      </property>
>
>                                      <property name="databaseFieldName"
> value="FIELDNUM"/>
>
>                                      <property name="javaFieldType"
> value="java.lang.Integer"/>
>
>                                      <property name="javaFieldName"
> value="fieldnum"/>
>
>                             </bean>
>
> to build the default type mappings.
>
>
>
> How to do the same configuration with list of objects (such as strings)?
>
>
>
> Best regards,
>
> Kevin
>



-- 
Vladislav Pyatkov

Reply via email to