Module spring.data.cassandra
Annotation Interface Tuple
Identifies a domain object as Cassandra Tuple. Tuples use ordered fields to map their value to the actual property.
A mapped tuple type is typically annotated with @Tuple and its properties/accessors are annotated with
@Element(0), @Element(1), ..., @Element(n).
Example usage:
@Tuple
class Address {
@Element(0) String street;
@Element(1) @CassandraType(type = Name.ASCII) String city;
@Element(2) int sortOrder;
}
- Since:
- 2.1
- Author:
- Mark Paluch
- See Also: