cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From DuyHai Doan <doanduy...@gmail.com>
Subject Re: Using Instants for timestamps in Java mappings?
Date Fri, 04 Nov 2016 09:37:11 GMT
You can:

1) Define your own codec :
http://datastax.github.io/java-driver/manual/custom_codecs/
2) Use the InstantCodec from Java drive extra module:
https://github.com/datastax/java-driver/blob/3.x/driver-extras/src/main/java/com/datastax/driver/extras/codecs/jdk8/InstantCodec.java

On Fri, Nov 4, 2016 at 8:39 AM, Ali Akhtar <ali.rac200@gmail.com> wrote:

> Is it possible to use Instants to represent timestamp columns in java
> mappings of cassandra tables? (Using the official java driver)
>

Mime
View raw message