Skip to content

Provides support to increase developer productivity in Java when using Cassandra. Uses familiar Spring concepts such as a template classes for core API usage and lightweight repository style data access.

Notifications You must be signed in to change notification settings

sheebans/spring-data-cassandra

 
 

Repository files navigation

Spring Data Cassandra

This is a SpringFramework Data project for Cassandra that uses the binary CQL3 protocol via the official DataStax 1.x Java driver for Cassandra 1.2.

Supports native CQL3 queries in SpringFramework Data Repositories.

Versions

Current versions:

  • CQL 3.0

  • Cassandra 1.2.12

  • Datastax Java Driver 1.0.5-dse

Works with Cassandra 2.0.x through Datastax Driver 1.0.5-dse as well.

Requirements

  • Java >= 1.6 (OpenJDK and Sun have been tested)

Recommended to use JDK 1.7

CQL

Fully supported CQL 3.0 version. Specification is available [here] (http://www.datastax.com/documentation/cql/3.0/pdf/cql30.pdf)

Modules

This project has two modules:

Spring Cassandra Cql gives ability to use CqlTemplate and makes operations based in CQL. Spring Data Cassandra gives ability to use CassandraTemplate and CassandraRepository.

Building

This is a standard Maven multimodule project. Just issue the command mvn clean install from the repo root.

Snapshot builds are available here

Using in maven application

Add snapshot repository to pom.xml


<repositories>
  <repository>
    <id>sonatype-nexus-snapshots</id>
    <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
  </repository>
</repositories>

Add dependencies to pom.xml


<dependency>
  <groupId>org.springdata</groupId>
  <artifactId>spring-cassandra-cql</artifactId>
  <version>1.2.0.BUILD-SNAPSHOT</version>
</dependency>

<dependency>
  <groupId>org.springdata</groupId>
  <artifactId>spring-data-cassandra</artifactId>
  <version>1.2.0.BUILD-SNAPSHOT</version>
</dependency>

Continuous integration

https://travis-ci.org/SpringData/spring-data-cassandra

Discussion forum

http://sdc.1003000.n3.nabble.com/

Contribution

A few steps to make this process easy for us:

About

Provides support to increase developer productivity in Java when using Cassandra. Uses familiar Spring concepts such as a template classes for core API usage and lightweight repository style data access.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published