#553 - Adapt Spring Data Cassandra.
This commit is contained in:
@@ -28,7 +28,7 @@ import org.springframework.core.convert.converter.Converter;
|
||||
import org.springframework.data.cassandra.core.convert.CassandraCustomConversions;
|
||||
import org.springframework.util.StringUtils;
|
||||
|
||||
import com.datastax.driver.core.Row;
|
||||
import com.datastax.oss.driver.api.core.cql.Row;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
|
||||
/**
|
||||
|
||||
@@ -23,8 +23,7 @@ import org.springframework.data.annotation.Id;
|
||||
import org.springframework.data.cassandra.core.mapping.CassandraType;
|
||||
import org.springframework.data.cassandra.core.mapping.Table;
|
||||
|
||||
import com.datastax.driver.core.DataType.Name;
|
||||
import com.datastax.driver.core.UDTValue;
|
||||
import com.datastax.oss.driver.api.core.data.UdtValue;
|
||||
|
||||
/**
|
||||
* @author Mark Paluch
|
||||
@@ -39,6 +38,5 @@ public class Person {
|
||||
Address current;
|
||||
List<Address> previous;
|
||||
|
||||
@CassandraType(type = Name.UDT, userTypeName = "address")
|
||||
UDTValue alternative;
|
||||
@CassandraType(type = CassandraType.Name.UDT, userTypeName = "address") UdtValue alternative;
|
||||
}
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
spring.data.cassandra.keyspace-name=example
|
||||
spring.data.cassandra.schema-action=recreate
|
||||
spring.data.cassandra.local-datacenter=datacenter1
|
||||
|
||||
Reference in New Issue
Block a user