ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ilya Kasnacheev <ilya.kasnach...@gmail.com>
Subject Re: apache ignite cassandra persistentStore for enum fields
Date Fri, 10 Aug 2018 12:39:48 GMT
Hello!

I can see the following in code:

fieldVal = NUMERIC_TYPES.contains(field.getDatabaseFieldType()) ?
val.ordinal() : val.name();

As you can see here, if the column is numeric then ordinal is stored,
otherwise it's name. Which is the one that you want. Just specify the
appropriate databaseFieldType.

Regards,

-- 
Ilya Kasnacheev

2018-08-10 15:35 GMT+03:00 michal23849 <michal23849@gmail.com>:

> Hi,
>
> I have the same issue with CacheJdbcPojoStore with writeBehind persistency
> in SQL DB.
>
> Is it only possible to store ENUMs as BLOBs or is there any other way to
> map
> them as strings, or anything else?
> I got the ENUMs both in the Key and Value fields.
>
> Regards
> Michal
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Mime
View raw message