cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From S G <sg.online.em...@gmail.com>
Subject DataStax: What codec to use for converting bigint to Long?
Date Thu, 30 Mar 2017 19:36:12 GMT
Hi,

I have a bigint field in my Cassandra that I want to convert to a long
value. However, I am not sure how to specify the same in my
DataStax-mapper-entity-class.

Here is the code:

@PartitionKey(1)
@Column(name="phone", codec=TypeCodec.)
private Double phoneNumber;

Can someone please tell what to use in the Column annotation?

Thanks for the help,

SG

Mime
View raw message