You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by S G <sg...@gmail.com> on 2017/03/30 19:36:12 UTC

DataStax: What codec to use for converting bigint to Long?

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