Merge branch 'master' into DATACASS-35
This commit is contained in:
12
pom.xml
12
pom.xml
@@ -81,6 +81,12 @@
|
||||
<groupId>com.datastax.cassandra</groupId>
|
||||
<artifactId>cassandra-driver-core</artifactId>
|
||||
<version>${cassandra-driver-core.version}</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<artifactId>slf4j-log4j12</artifactId>
|
||||
<groupId>org.slf4j</groupId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
|
||||
<!-- Spring -->
|
||||
@@ -116,6 +122,12 @@
|
||||
<version>${spring}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-api</artifactId>
|
||||
<version>1.7.4</version>
|
||||
</dependency>
|
||||
|
||||
<!-- CDI -->
|
||||
<dependency>
|
||||
<groupId>javax.enterprise</groupId>
|
||||
|
||||
15
readme.md
15
readme.md
@@ -2,6 +2,19 @@ Spring Data Cassandra
|
||||
=====================
|
||||
|
||||
This is a Spring Data subproject for Cassandra that uses the binary CQL3 protocol via
|
||||
the official DataStax 1.x Java driver (https://github.com/datastax/java-driver).
|
||||
the official DataStax 1.x Java driver (https://github.com/datastax/java-driver) against Cassandra 1.2.
|
||||
|
||||
Supports native CQL3 queries in Spring Repositories.
|
||||
|
||||
Cloning
|
||||
-------
|
||||
When cloning this repo, it's a good idea to also clone two others from Spring Data that this project depends on. Assuming your current working directory is the root of this repository, issue the following commands:
|
||||
|
||||
cd ..
|
||||
git clone https://github.com/spring-projects/spring-data-build.git
|
||||
git clone https://github.com/spring-projects/spring-data-commons.git
|
||||
|
||||
|
||||
Building
|
||||
--------
|
||||
This is a standard Maven multimodule project. Just issue the command `mvn clean install` from the repo root.
|
||||
|
||||
@@ -65,6 +65,12 @@
|
||||
<groupId>org.cassandraunit</groupId>
|
||||
<artifactId>cassandra-unit</artifactId>
|
||||
<scope>test</scope>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<artifactId>slf4j-log4j12</artifactId>
|
||||
<groupId>org.slf4j</groupId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>javax.el</groupId>
|
||||
|
||||
@@ -64,7 +64,7 @@ public class AlterTableCqlGenerator extends TableOptionsCqlGenerator<AlterTableS
|
||||
if (change instanceof AlterColumnSpecification) {
|
||||
return new AlterColumnCqlGenerator((AlterColumnSpecification) change);
|
||||
}
|
||||
throw new Error("unknown ColumnChangeSpecification type: " + change.getClass().getName());
|
||||
throw new IllegalArgumentException("unknown ColumnChangeSpecification type: " + change.getClass().getName());
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
|
||||
18
spring-cassandra/src/test/resources/logback.xml
Normal file
18
spring-cassandra/src/test/resources/logback.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration>
|
||||
|
||||
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<encoder>
|
||||
<!-- pattern>%d %5p %40.40c:%4L - %m%n</pattern-->
|
||||
<pattern>%d %5p | %t | %-55logger{55} | %m | %n</pattern>
|
||||
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<logger name="org.springframework.cassandra" level="debug" />
|
||||
|
||||
<root level="warn">
|
||||
<appender-ref ref="console" />
|
||||
</root>
|
||||
|
||||
</configuration>
|
||||
@@ -65,6 +65,12 @@
|
||||
<groupId>org.cassandraunit</groupId>
|
||||
<artifactId>cassandra-unit</artifactId>
|
||||
<scope>test</scope>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<artifactId>slf4j-log4j12</artifactId>
|
||||
<groupId>org.slf4j</groupId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
log4j.rootLogger=WARN, stdout
|
||||
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
|
||||
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.stdout.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
|
||||
log4j.logger.org.springframework.data.cassandra=INFO
|
||||
|
||||
18
spring-data-cassandra/src/test/resources/logback.xml
Normal file
18
spring-data-cassandra/src/test/resources/logback.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration>
|
||||
|
||||
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<encoder>
|
||||
<!-- pattern>%d %5p %40.40c:%4L - %m%n</pattern-->
|
||||
<pattern>%d %5p | %t | %-55logger{55} | %m | %n</pattern>
|
||||
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<logger name="org.springframework.cassandra" level="debug" />
|
||||
|
||||
<root level="warn">
|
||||
<appender-ref ref="console" />
|
||||
</root>
|
||||
|
||||
</configuration>
|
||||
Reference in New Issue
Block a user