spring-data-cassandra

How to insert java.util.Date values into Cassandra date type column using Spring Data Cassandra?

£可爱£侵袭症+ 提交于 2019-11-28 04:09:51
问题 I have cassandra table with a date type column as follows: create table people ( id int primary key, name text, email text, dob date ); I am using SpringBoot 1.5.2 + Spring Data Cassandra Starter. @Table("people") public class Person { @PrimaryKey Integer id; private String name; private String email; private java.util.Date dob; //setters and getters } public interface PersonRepository extends CrudRepository<Person, Integer>{ } I am inserting new Person as follows: personRepository.save(new

User Defined Type with spring-data-cassandra

随声附和 提交于 2019-11-27 02:11:18
I am looking to create models as below, how can I use user defined types in spring-data-cassandra? { email: "test@example.com", name: { fname: "First", lname: "Last" } } John Blum Spring Data Cassandra does not currently support Cassandra Database UDTs or Tuple Types in the mapping infrastructure of SD Cassandra. However, we do plan to address both of these things in an upcoming release. See and follow DATACASS-284 - Add support for TupleType/TupleValue and DATACASS-172 - How to handle CUSTOM, User Defined TYPEs for more details. Note... SD Cassandra was recently moved under the Pivotal

User Defined Type with spring-data-cassandra

社会主义新天地 提交于 2019-11-26 09:59:42
问题 I am looking to create models as below, how can I use user defined types in spring-data-cassandra? { email: \"test@example.com\", name: { fname: \"First\", lname: \"Last\" } } 回答1: Spring Data Cassandra does not currently support Cassandra Database UDTs or Tuple Types in the mapping infrastructure of SD Cassandra. However, we do plan to address both of these things in an upcoming release. See and follow DATACASS-284 - Add support for TupleType/TupleValue and DATACASS-172 - How to handle