Hi Jenny,

Could you change type your field in POJO class to java.utile.Date? It's
solve your problem?

On Tue, Apr 4, 2017 at 7:12 PM, Nikolai Tikhonov <[email protected]>
wrote:

> Hello,
>
> Jenny,
> I'm bit confused. Which type do you have in cassandra table? timestamp? As
> I see from http://docs.datastax.com/en/developer/java-driver/3.1/m
> anual/#cql-to-java-type-mapping timestamp should be converted to
> java.util.Date
>
> Igor,
> By the way, could we support to custom type converter in integration with
> cassandra?
>
> On Fri, Mar 31, 2017 at 7:05 AM, Igor Rudyak <[email protected]> wrote:
>
>> Hello,
>>
>> It works for long, but doesn't work for Timestamp cause there are no
>> direct
>> mapping (
>> http://docs.datastax.com/en/developer/java-driver/3.1/manual
>> /#cql-to-java-type-mapping
>> <http://docs.datastax.com/en/developer/java-driver/3.1/manua
>> l/#cql-to-java-type-mapping>
>> ) from java.sql.Timestamp to Cassandra's Timestamp type.
>>
>>
>>
>> --
>> View this message in context: http://apache-ignite-users.705
>> 18.x6.nabble.com/Timestamp-is-not-stored-correctly-with-Cass
>> andra-tp11590p11595.html
>> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>>
>
>

Reply via email to