Overview of Spring Data for Apache Cassandra features
mainSpring Data for Apache Cassandra provides a comprehensive suite of tools for interacting with Apache Cassandra, ranging from low-level CQL execution to high-level object mapping and repository abstractions.
Key features include:
- Configuration Support: Use Java-based
@Configurationclasses or XML namespaces. - CQL Templates:
CqlTemplate,AsyncCqlTemplate, andReactiveCqlTemplatefor direct CQL execution. - Cassandra Templates:
CassandraTemplate,AsyncCassandraTemplate, andReactiveCassandraTemplatefor object mapping between CQL tables and POJOs. - Exception Translation: Automatic translation of Cassandra-specific errors into Spring's portable Data Access Exception Hierarchy.
- Object Mapping: Feature-rich mapping integrated with Spring's Conversion Service, supporting annotation-based metadata.
- Query DSLs: Java-based DSLs for queries, criteria, and updates.
- Repository Abstraction: Automatic implementation of imperative and reactive
Repositoryinterfaces, including support for custom query methods.