【发布时间】:2018-07-29 13:46:31
【问题描述】:
我有一张如下表
col1 text,
col2 timestamp,
col3 text,
col4 text,
col5 text,
col6 date,
col7 time,
我不知道如何为上表创建一个 bean 类。 到目前为止,我已经创建了一个带有以下键的 bean。但它不起作用
@PrimaryKey
String col1;
Date col2;
String col3;
String col4;
String col5;
Date col6;
String col6;
请帮助我在 Spring 中处理 timestamp、time 和 date 等 Cassandra 数据类型。
【问题讨论】:
标签: java spring spring-boot cassandra datastax