BAEL-21730: Migrate spring-data-cassandra to com.baeldung

This commit is contained in:
Krzysiek 2020-02-08 11:59:21 +01:00
parent 5f9f5dd922
commit f3e56b6797
8 changed files with 19 additions and 19 deletions

View File

@ -1,8 +1,8 @@
## Spring Data Cassandra ## Spring Data Cassandra
### Relevant Articles: ### Relevant Articles:
- [Introduction to Spring Data Cassandra](http://www.baeldung.com/spring-data-cassandra-tutorial) - [Introduction to Spring Data Cassandra](https://www.baeldung.com/spring-data-cassandra-tutorial)
- [Using the CassandraTemplate from Spring Data](http://www.baeldung.com/spring-data-cassandratemplate-cqltemplate) - [Using the CassandraTemplate from Spring Data](https://www.baeldung.com/spring-data-cassandratemplate-cqltemplate)
### Build the Project with Tests Running ### Build the Project with Tests Running
``` ```

View File

@ -1,4 +1,4 @@
package org.baeldung.spring.data.cassandra.config; package com.baeldung.spring.data.cassandra.config;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
@ -15,7 +15,7 @@ import org.springframework.data.cassandra.repository.config.EnableCassandraRepos
@Configuration @Configuration
@PropertySource(value = { "classpath:cassandra.properties" }) @PropertySource(value = { "classpath:cassandra.properties" })
@EnableCassandraRepositories(basePackages = "org.baeldung.spring.data.cassandra.repository") @EnableCassandraRepositories(basePackages = "com.baeldung.spring.data.cassandra.repository")
public class CassandraConfig extends AbstractCassandraConfiguration { public class CassandraConfig extends AbstractCassandraConfiguration {
private static final Log LOGGER = LogFactory.getLog(CassandraConfig.class); private static final Log LOGGER = LogFactory.getLog(CassandraConfig.class);

View File

@ -1,4 +1,4 @@
package org.baeldung.spring.data.cassandra.model; package com.baeldung.spring.data.cassandra.model;
import java.util.HashSet; import java.util.HashSet;
import java.util.Set; import java.util.Set;

View File

@ -1,6 +1,6 @@
package org.baeldung.spring.data.cassandra.repository; package com.baeldung.spring.data.cassandra.repository;
import org.baeldung.spring.data.cassandra.model.Book; import com.baeldung.spring.data.cassandra.model.Book;
import org.springframework.data.cassandra.repository.CassandraRepository; import org.springframework.data.cassandra.repository.CassandraRepository;
import org.springframework.data.cassandra.repository.Query; import org.springframework.data.cassandra.repository.Query;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;

View File

@ -1,12 +1,12 @@
package org.baeldung; package com.baeldung;
import java.io.IOException; import java.io.IOException;
import java.util.HashMap; import java.util.HashMap;
import org.apache.cassandra.exceptions.ConfigurationException; import org.apache.cassandra.exceptions.ConfigurationException;
import org.apache.thrift.transport.TTransportException; import org.apache.thrift.transport.TTransportException;
import org.baeldung.spring.data.cassandra.config.CassandraConfig; import com.baeldung.spring.data.cassandra.config.CassandraConfig;
import org.baeldung.spring.data.cassandra.model.Book; import com.baeldung.spring.data.cassandra.model.Book;
import org.cassandraunit.utils.EmbeddedCassandraServerHelper; import org.cassandraunit.utils.EmbeddedCassandraServerHelper;
import org.junit.After; import org.junit.After;
import org.junit.AfterClass; import org.junit.AfterClass;

View File

@ -1,4 +1,4 @@
package org.baeldung.spring.data.cassandra.repository; package com.baeldung.spring.data.cassandra.repository;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals; import static org.junit.Assert.assertNotEquals;
@ -6,12 +6,12 @@ import static org.junit.Assert.assertNotEquals;
import java.io.IOException; import java.io.IOException;
import java.util.HashMap; import java.util.HashMap;
import com.baeldung.spring.data.cassandra.model.Book;
import org.apache.cassandra.exceptions.ConfigurationException; import org.apache.cassandra.exceptions.ConfigurationException;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.apache.thrift.transport.TTransportException; import org.apache.thrift.transport.TTransportException;
import org.baeldung.spring.data.cassandra.config.CassandraConfig; import com.baeldung.spring.data.cassandra.config.CassandraConfig;
import org.baeldung.spring.data.cassandra.model.Book;
import org.cassandraunit.utils.EmbeddedCassandraServerHelper; import org.cassandraunit.utils.EmbeddedCassandraServerHelper;
import org.junit.After; import org.junit.After;
import org.junit.AfterClass; import org.junit.AfterClass;

View File

@ -1,4 +1,4 @@
package org.baeldung.spring.data.cassandra.repository; package com.baeldung.spring.data.cassandra.repository;
import static junit.framework.TestCase.assertNull; import static junit.framework.TestCase.assertNull;
import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.CoreMatchers.is;
@ -10,12 +10,12 @@ import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import com.baeldung.spring.data.cassandra.config.CassandraConfig;
import com.baeldung.spring.data.cassandra.model.Book;
import org.apache.cassandra.exceptions.ConfigurationException; import org.apache.cassandra.exceptions.ConfigurationException;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.apache.thrift.transport.TTransportException; import org.apache.thrift.transport.TTransportException;
import org.baeldung.spring.data.cassandra.config.CassandraConfig;
import org.baeldung.spring.data.cassandra.model.Book;
import org.cassandraunit.utils.EmbeddedCassandraServerHelper; import org.cassandraunit.utils.EmbeddedCassandraServerHelper;
import org.junit.After; import org.junit.After;
import org.junit.AfterClass; import org.junit.AfterClass;

View File

@ -1,4 +1,4 @@
package org.baeldung.spring.data.cassandra.repository; package com.baeldung.spring.data.cassandra.repository;
import static junit.framework.TestCase.assertEquals; import static junit.framework.TestCase.assertEquals;
@ -12,8 +12,8 @@ import org.apache.cassandra.exceptions.ConfigurationException;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.apache.thrift.transport.TTransportException; import org.apache.thrift.transport.TTransportException;
import org.baeldung.spring.data.cassandra.config.CassandraConfig; import com.baeldung.spring.data.cassandra.config.CassandraConfig;
import org.baeldung.spring.data.cassandra.model.Book; import com.baeldung.spring.data.cassandra.model.Book;
import org.cassandraunit.utils.EmbeddedCassandraServerHelper; import org.cassandraunit.utils.EmbeddedCassandraServerHelper;
import org.junit.After; import org.junit.After;
import org.junit.AfterClass; import org.junit.AfterClass;