This commit is contained in:
ajay74984 2020-02-15 17:25:56 +01:00
commit 6e8bbfd9c3
58 changed files with 119 additions and 119 deletions

View File

@ -1,9 +1,9 @@
## Spring Data Couchbase Tutorial Project ## Spring Data Couchbase Tutorial Project
### Relevant Articles: ### Relevant Articles:
- [Intro to Spring Data Couchbase](http://www.baeldung.com/spring-data-couchbase) - [Intro to Spring Data Couchbase](https://www.baeldung.com/spring-data-couchbase)
- [Entity Validation, Optimistic Locking, and Query Consistency in Spring Data Couchbase](http://www.baeldung.com/entity-validation-locking-and-query-consistency-in-spring-data-couchbase) - [Entity Validation, Optimistic Locking, and Query Consistency in Spring Data Couchbase](https://www.baeldung.com/entity-validation-locking-and-query-consistency-in-spring-data-couchbase)
- [Multiple Buckets and Spatial View Queries in Spring Data Couchbase](http://www.baeldung.com/spring-data-couchbase-buckets-and-spatial-view-queries) - [Multiple Buckets and Spatial View Queries in Spring Data Couchbase](https://www.baeldung.com/spring-data-couchbase-buckets-and-spatial-view-queries)
### Overview ### Overview
This Maven project contains the Java code for Spring Data Couchbase This Maven project contains the Java code for Spring Data Couchbase
@ -25,14 +25,14 @@ mvn clean install
### Package Organization ### Package Organization
Java classes for the first two tutorials listed above are in src/main/java in the package hierarchy Java classes for the first two tutorials listed above are in src/main/java in the package hierarchy
org.baeldung.spring.data.couchbase com.baeldung.spring.data.couchbase
Java classes for the multiple-bucket tutorials are in src/main/java in the package hierarchy Java classes for the multiple-bucket tutorials are in src/main/java in the package hierarchy
org.baeldung.spring.data.couchbase2b com.baeldung.spring.data.couchbase2b
### Running the tests ### Running the tests
The test classes for the single-bucket tutorials are in src/test/java in the package The test classes for the single-bucket tutorials are in src/test/java in the package
org.baeldung.spring.data.couchbase.service: com.baeldung.spring.data.couchbase.service:
- PersonServiceTest (abstract) - PersonServiceTest (abstract)
- PersonRepositoryTest (concrete) - PersonRepositoryTest (concrete)
- PersonTemplateServiceTest (concrete) - PersonTemplateServiceTest (concrete)
@ -41,7 +41,7 @@ org.baeldung.spring.data.couchbase.service:
- StudentTemplateServiceTest (concrete) - StudentTemplateServiceTest (concrete)
The concrete test classes for the multiple-bucket tutorial are in src/test/java in the package The concrete test classes for the multiple-bucket tutorial are in src/test/java in the package
org.baeldung.spring.data.couchbase2b.service: com.baeldung.spring.data.couchbase2b.service:
- CampusRepositoryServiceImplTest - CampusRepositoryServiceImplTest
- PersonRepositoryServiceImplTest - PersonRepositoryServiceImplTest
- StudentRepositoryServiceImplTest - StudentRepositoryServiceImplTest

View File

@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>org.baeldung</groupId> <groupId>com.baeldung</groupId>
<artifactId>spring-data-couchbase-2</artifactId> <artifactId>spring-data-couchbase-2</artifactId>
<version>0.1-SNAPSHOT</version> <version>0.1-SNAPSHOT</version>
<name>spring-data-couchbase-2</name> <name>spring-data-couchbase-2</name>

View File

@ -1,4 +1,4 @@
package org.baeldung.spring.data.couchbase.model; package com.baeldung.spring.data.couchbase.model;
import javax.validation.constraints.NotNull; import javax.validation.constraints.NotNull;

View File

@ -1,4 +1,4 @@
package org.baeldung.spring.data.couchbase.model; package com.baeldung.spring.data.couchbase.model;
import javax.validation.constraints.NotNull; import javax.validation.constraints.NotNull;

View File

@ -1,4 +1,4 @@
package org.baeldung.spring.data.couchbase.model; package com.baeldung.spring.data.couchbase.model;
import javax.validation.constraints.NotNull; import javax.validation.constraints.NotNull;
import javax.validation.constraints.Past; import javax.validation.constraints.Past;

View File

@ -1,8 +1,8 @@
package org.baeldung.spring.data.couchbase.repos; package com.baeldung.spring.data.couchbase.repos;
import java.util.List; import java.util.List;
import org.baeldung.spring.data.couchbase.model.Student; import com.baeldung.spring.data.couchbase.model.Student;
public interface CustomStudentRepository { public interface CustomStudentRepository {
List<Student> findByFirstNameStartsWith(String s); List<Student> findByFirstNameStartsWith(String s);

View File

@ -1,8 +1,8 @@
package org.baeldung.spring.data.couchbase.repos; package com.baeldung.spring.data.couchbase.repos;
import java.util.List; import java.util.List;
import org.baeldung.spring.data.couchbase.model.Student; import com.baeldung.spring.data.couchbase.model.Student;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.couchbase.core.CouchbaseTemplate; import org.springframework.data.couchbase.core.CouchbaseTemplate;

View File

@ -1,8 +1,8 @@
package org.baeldung.spring.data.couchbase.repos; package com.baeldung.spring.data.couchbase.repos;
import java.util.List; import java.util.List;
import org.baeldung.spring.data.couchbase.model.Person; import com.baeldung.spring.data.couchbase.model.Person;
import org.springframework.data.repository.CrudRepository; import org.springframework.data.repository.CrudRepository;
public interface PersonRepository extends CrudRepository<Person, String> { public interface PersonRepository extends CrudRepository<Person, String> {

View File

@ -1,8 +1,8 @@
package org.baeldung.spring.data.couchbase.repos; package com.baeldung.spring.data.couchbase.repos;
import java.util.List; import java.util.List;
import org.baeldung.spring.data.couchbase.model.Student; import com.baeldung.spring.data.couchbase.model.Student;
import org.springframework.data.repository.CrudRepository; import org.springframework.data.repository.CrudRepository;
public interface StudentRepository extends CrudRepository<Student, String>, CustomStudentRepository { public interface StudentRepository extends CrudRepository<Student, String>, CustomStudentRepository {

View File

@ -1,11 +1,11 @@
package org.baeldung.spring.data.couchbase.service; package com.baeldung.spring.data.couchbase.service;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Iterator; import java.util.Iterator;
import java.util.List; import java.util.List;
import org.baeldung.spring.data.couchbase.model.Person; import com.baeldung.spring.data.couchbase.model.Person;
import org.baeldung.spring.data.couchbase.repos.PersonRepository; import com.baeldung.spring.data.couchbase.repos.PersonRepository;
import org.joda.time.DateTime; import org.joda.time.DateTime;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.beans.factory.annotation.Qualifier;

View File

@ -1,8 +1,8 @@
package org.baeldung.spring.data.couchbase.service; package com.baeldung.spring.data.couchbase.service;
import java.util.List; import java.util.List;
import org.baeldung.spring.data.couchbase.model.Person; import com.baeldung.spring.data.couchbase.model.Person;
public interface PersonService { public interface PersonService {

View File

@ -1,8 +1,8 @@
package org.baeldung.spring.data.couchbase.service; package com.baeldung.spring.data.couchbase.service;
import java.util.List; import java.util.List;
import org.baeldung.spring.data.couchbase.model.Person; import com.baeldung.spring.data.couchbase.model.Person;
import org.joda.time.DateTime; import org.joda.time.DateTime;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.beans.factory.annotation.Qualifier;

View File

@ -1,11 +1,11 @@
package org.baeldung.spring.data.couchbase.service; package com.baeldung.spring.data.couchbase.service;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Iterator; import java.util.Iterator;
import java.util.List; import java.util.List;
import org.baeldung.spring.data.couchbase.model.Student; import com.baeldung.spring.data.couchbase.model.Student;
import org.baeldung.spring.data.couchbase.repos.StudentRepository; import com.baeldung.spring.data.couchbase.repos.StudentRepository;
import org.joda.time.DateTime; import org.joda.time.DateTime;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.beans.factory.annotation.Qualifier;

View File

@ -1,8 +1,8 @@
package org.baeldung.spring.data.couchbase.service; package com.baeldung.spring.data.couchbase.service;
import java.util.List; import java.util.List;
import org.baeldung.spring.data.couchbase.model.Student; import com.baeldung.spring.data.couchbase.model.Student;
public interface StudentService { public interface StudentService {

View File

@ -1,8 +1,8 @@
package org.baeldung.spring.data.couchbase.service; package com.baeldung.spring.data.couchbase.service;
import java.util.List; import java.util.List;
import org.baeldung.spring.data.couchbase.model.Student; import com.baeldung.spring.data.couchbase.model.Student;
import org.joda.time.DateTime; import org.joda.time.DateTime;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.beans.factory.annotation.Qualifier;

View File

@ -1,8 +1,8 @@
package org.baeldung.spring.data.couchbase2b.repos; package com.baeldung.spring.data.couchbase2b.repos;
import java.util.Set; import java.util.Set;
import org.baeldung.spring.data.couchbase.model.Campus; import com.baeldung.spring.data.couchbase.model.Campus;
import org.springframework.data.couchbase.core.query.Dimensional; import org.springframework.data.couchbase.core.query.Dimensional;
import org.springframework.data.couchbase.core.query.View; import org.springframework.data.couchbase.core.query.View;
import org.springframework.data.geo.Distance; import org.springframework.data.geo.Distance;

View File

@ -1,8 +1,8 @@
package org.baeldung.spring.data.couchbase2b.repos; package com.baeldung.spring.data.couchbase2b.repos;
import java.util.List; import java.util.List;
import org.baeldung.spring.data.couchbase.model.Person; import com.baeldung.spring.data.couchbase.model.Person;
import org.springframework.data.repository.CrudRepository; import org.springframework.data.repository.CrudRepository;
public interface PersonRepository extends CrudRepository<Person, String> { public interface PersonRepository extends CrudRepository<Person, String> {

View File

@ -1,8 +1,8 @@
package org.baeldung.spring.data.couchbase2b.repos; package com.baeldung.spring.data.couchbase2b.repos;
import java.util.List; import java.util.List;
import org.baeldung.spring.data.couchbase.model.Student; import com.baeldung.spring.data.couchbase.model.Student;
import org.springframework.data.repository.CrudRepository; import org.springframework.data.repository.CrudRepository;
public interface StudentRepository extends CrudRepository<Student, String> { public interface StudentRepository extends CrudRepository<Student, String> {

View File

@ -1,8 +1,8 @@
package org.baeldung.spring.data.couchbase2b.service; package com.baeldung.spring.data.couchbase2b.service;
import java.util.Set; import java.util.Set;
import org.baeldung.spring.data.couchbase.model.Campus; import com.baeldung.spring.data.couchbase.model.Campus;
import org.springframework.data.geo.Distance; import org.springframework.data.geo.Distance;
import org.springframework.data.geo.Point; import org.springframework.data.geo.Point;

View File

@ -1,11 +1,11 @@
package org.baeldung.spring.data.couchbase2b.service; package com.baeldung.spring.data.couchbase2b.service;
import java.util.HashSet; import java.util.HashSet;
import java.util.Iterator; import java.util.Iterator;
import java.util.Set; import java.util.Set;
import org.baeldung.spring.data.couchbase.model.Campus; import com.baeldung.spring.data.couchbase2b.repos.CampusRepository;
import org.baeldung.spring.data.couchbase2b.repos.CampusRepository; import com.baeldung.spring.data.couchbase.model.Campus;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.geo.Distance; import org.springframework.data.geo.Distance;
import org.springframework.data.geo.Point; import org.springframework.data.geo.Point;

View File

@ -1,8 +1,8 @@
package org.baeldung.spring.data.couchbase2b.service; package com.baeldung.spring.data.couchbase2b.service;
import java.util.List; import java.util.List;
import org.baeldung.spring.data.couchbase.model.Person; import com.baeldung.spring.data.couchbase.model.Person;
public interface PersonService { public interface PersonService {

View File

@ -1,11 +1,11 @@
package org.baeldung.spring.data.couchbase2b.service; package com.baeldung.spring.data.couchbase2b.service;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Iterator; import java.util.Iterator;
import java.util.List; import java.util.List;
import org.baeldung.spring.data.couchbase.model.Person; import com.baeldung.spring.data.couchbase2b.repos.PersonRepository;
import org.baeldung.spring.data.couchbase2b.repos.PersonRepository; import com.baeldung.spring.data.couchbase.model.Person;
import org.joda.time.DateTime; import org.joda.time.DateTime;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;

View File

@ -1,8 +1,8 @@
package org.baeldung.spring.data.couchbase2b.service; package com.baeldung.spring.data.couchbase2b.service;
import java.util.List; import java.util.List;
import org.baeldung.spring.data.couchbase.model.Student; import com.baeldung.spring.data.couchbase.model.Student;
public interface StudentService { public interface StudentService {

View File

@ -1,11 +1,11 @@
package org.baeldung.spring.data.couchbase2b.service; package com.baeldung.spring.data.couchbase2b.service;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Iterator; import java.util.Iterator;
import java.util.List; import java.util.List;
import org.baeldung.spring.data.couchbase.model.Student; import com.baeldung.spring.data.couchbase2b.repos.StudentRepository;
import org.baeldung.spring.data.couchbase2b.repos.StudentRepository; import com.baeldung.spring.data.couchbase.model.Student;
import org.joda.time.DateTime; import org.joda.time.DateTime;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;

View File

@ -1,7 +1,7 @@
package org.baeldung; package com.baeldung;
import org.baeldung.spring.data.couchbase2b.MultiBucketCouchbaseConfig; import com.baeldung.spring.data.couchbase2b.MultiBucketCouchbaseConfig;
import org.baeldung.spring.data.couchbase2b.MultiBucketIntegrationTestConfig; import com.baeldung.spring.data.couchbase2b.MultiBucketIntegrationTestConfig;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.ContextConfiguration;
@ -25,7 +25,7 @@ import org.springframework.test.context.support.DependencyInjectionTestExecution
* {@code * {@code
* function (doc) { * function (doc) {
* if (doc.location && * if (doc.location &&
* doc._class == "org.baeldung.spring.data.couchbase.model.Campus") { * doc._class == "com.baeldung.spring.data.couchbase.model.Campus") {
* emit([doc.location.x, doc.location.y], null); * emit([doc.location.x, doc.location.y], null);
* } * }
* }} * }}
@ -34,7 +34,7 @@ import org.springframework.test.context.support.DependencyInjectionTestExecution
* 2.4.1- view 'all' with function: * 2.4.1- view 'all' with function:
* {@code * {@code
* function (doc, meta) { * function (doc, meta) {
* if(doc._class == "org.baeldung.spring.data.couchbase.model.Campus") { * if(doc._class == "com.baeldung.spring.data.couchbase.model.Campus") {
* emit(meta.id, null); * emit(meta.id, null);
* } * }
* }} * }}
@ -42,7 +42,7 @@ import org.springframework.test.context.support.DependencyInjectionTestExecution
* 2.4.2- view 'byName' with function: * 2.4.2- view 'byName' with function:
* {@code * {@code
* function (doc, meta) { * function (doc, meta) {
* if(doc._class == "org.baeldung.spring.data.couchbase.model.Campus" && * if(doc._class == "com.baeldung.spring.data.couchbase.model.Campus" &&
* doc.name) { * doc.name) {
* emit(doc.name, null); * emit(doc.name, null);
* } * }

View File

@ -1,4 +1,4 @@
package org.baeldung.spring.data.couchbase; package com.baeldung.spring.data.couchbase;
import org.springframework.data.couchbase.core.convert.MappingCouchbaseConverter; import org.springframework.data.couchbase.core.convert.MappingCouchbaseConverter;

View File

@ -1,4 +1,4 @@
package org.baeldung.spring.data.couchbase; package com.baeldung.spring.data.couchbase;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.ContextConfiguration;

View File

@ -1,9 +1,9 @@
package org.baeldung.spring.data.couchbase; package com.baeldung.spring.data.couchbase;
import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
@Configuration @Configuration
@ComponentScan(basePackages = "org.baeldung.spring.data.couchbase") @ComponentScan(basePackages = "com.baeldung.spring.data.couchbase")
public class IntegrationTestConfig { public class IntegrationTestConfig {
} }

View File

@ -1,4 +1,4 @@
package org.baeldung.spring.data.couchbase; package com.baeldung.spring.data.couchbase;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
@ -12,7 +12,7 @@ import org.springframework.data.couchbase.repository.config.EnableCouchbaseRepos
import org.springframework.validation.beanvalidation.LocalValidatorFactoryBean; import org.springframework.validation.beanvalidation.LocalValidatorFactoryBean;
@Configuration @Configuration
@EnableCouchbaseRepositories(basePackages = { "org.baeldung.spring.data.couchbase" }) @EnableCouchbaseRepositories(basePackages = { "com.baeldung.spring.data.couchbase" })
public class MyCouchbaseConfig extends AbstractCouchbaseConfiguration { public class MyCouchbaseConfig extends AbstractCouchbaseConfiguration {
public static final List<String> NODE_LIST = Arrays.asList("localhost"); public static final List<String> NODE_LIST = Arrays.asList("localhost");

View File

@ -1,4 +1,4 @@
package org.baeldung.spring.data.couchbase; package com.baeldung.spring.data.couchbase;
import org.springframework.data.couchbase.core.query.Consistency; import org.springframework.data.couchbase.core.query.Consistency;

View File

@ -1,4 +1,4 @@
package org.baeldung.spring.data.couchbase.service; package com.baeldung.spring.data.couchbase.service;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.beans.factory.annotation.Qualifier;

View File

@ -1,4 +1,4 @@
package org.baeldung.spring.data.couchbase.service; package com.baeldung.spring.data.couchbase.service;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertFalse;
@ -7,9 +7,9 @@ import static org.junit.Assert.assertTrue;
import java.util.List; import java.util.List;
import org.baeldung.spring.data.couchbase.IntegrationTest; import com.baeldung.spring.data.couchbase.IntegrationTest;
import org.baeldung.spring.data.couchbase.MyCouchbaseConfig; import com.baeldung.spring.data.couchbase.MyCouchbaseConfig;
import org.baeldung.spring.data.couchbase.model.Person; import com.baeldung.spring.data.couchbase.model.Person;
import org.joda.time.DateTime; import org.joda.time.DateTime;
import org.junit.BeforeClass; import org.junit.BeforeClass;
import org.junit.Test; import org.junit.Test;

View File

@ -1,4 +1,4 @@
package org.baeldung.spring.data.couchbase.service; package com.baeldung.spring.data.couchbase.service;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.beans.factory.annotation.Qualifier;

View File

@ -1,4 +1,4 @@
package org.baeldung.spring.data.couchbase.service; package com.baeldung.spring.data.couchbase.service;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.beans.factory.annotation.Qualifier;

View File

@ -1,4 +1,4 @@
package org.baeldung.spring.data.couchbase.service; package com.baeldung.spring.data.couchbase.service;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertFalse;
@ -9,9 +9,9 @@ import java.util.List;
import javax.validation.ConstraintViolationException; import javax.validation.ConstraintViolationException;
import org.baeldung.spring.data.couchbase.IntegrationTest; import com.baeldung.spring.data.couchbase.IntegrationTest;
import org.baeldung.spring.data.couchbase.MyCouchbaseConfig; import com.baeldung.spring.data.couchbase.MyCouchbaseConfig;
import org.baeldung.spring.data.couchbase.model.Student; import com.baeldung.spring.data.couchbase.model.Student;
import org.joda.time.DateTime; import org.joda.time.DateTime;
import org.junit.BeforeClass; import org.junit.BeforeClass;
import org.junit.Test; import org.junit.Test;

View File

@ -1,4 +1,4 @@
package org.baeldung.spring.data.couchbase.service; package com.baeldung.spring.data.couchbase.service;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.beans.factory.annotation.Qualifier;

View File

@ -1,9 +1,9 @@
package org.baeldung.spring.data.couchbase2b; package com.baeldung.spring.data.couchbase2b;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
import org.baeldung.spring.data.couchbase.model.Campus; import com.baeldung.spring.data.couchbase.model.Campus;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import org.springframework.data.couchbase.config.AbstractCouchbaseConfiguration; import org.springframework.data.couchbase.config.AbstractCouchbaseConfiguration;
@ -17,7 +17,7 @@ import org.springframework.validation.beanvalidation.LocalValidatorFactoryBean;
import com.couchbase.client.java.Bucket; import com.couchbase.client.java.Bucket;
@Configuration @Configuration
@EnableCouchbaseRepositories(basePackages = { "org.baeldung.spring.data.couchbase2b" }) @EnableCouchbaseRepositories(basePackages = { "com.baeldung.spring.data.couchbase2b" })
public class MultiBucketCouchbaseConfig extends AbstractCouchbaseConfiguration { public class MultiBucketCouchbaseConfig extends AbstractCouchbaseConfiguration {
public static final List<String> NODE_LIST = Arrays.asList("localhost"); public static final List<String> NODE_LIST = Arrays.asList("localhost");

View File

@ -1,10 +1,10 @@
package org.baeldung.spring.data.couchbase2b; package com.baeldung.spring.data.couchbase2b;
import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
@Configuration @Configuration
@ComponentScan(basePackages = { "org.baeldung.spring.data.couchbase2b" }) @ComponentScan(basePackages = { "com.baeldung.spring.data.couchbase2b" })
public class MultiBucketIntegrationTestConfig { public class MultiBucketIntegrationTestConfig {
} }

View File

@ -1,4 +1,4 @@
package org.baeldung.spring.data.couchbase2b; package com.baeldung.spring.data.couchbase2b;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.ContextConfiguration;

View File

@ -1,4 +1,4 @@
package org.baeldung.spring.data.couchbase2b.service; package com.baeldung.spring.data.couchbase2b.service;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertFalse;
@ -9,9 +9,9 @@ import java.util.Set;
import javax.annotation.PostConstruct; import javax.annotation.PostConstruct;
import org.baeldung.spring.data.couchbase.model.Campus; import com.baeldung.spring.data.couchbase.model.Campus;
import org.baeldung.spring.data.couchbase2b.MultiBucketLiveTest; import com.baeldung.spring.data.couchbase2b.MultiBucketLiveTest;
import org.baeldung.spring.data.couchbase2b.repos.CampusRepository; import com.baeldung.spring.data.couchbase2b.repos.CampusRepository;
import org.junit.Test; import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.geo.Distance; import org.springframework.data.geo.Distance;

View File

@ -1,4 +1,4 @@
package org.baeldung.spring.data.couchbase2b.service; package com.baeldung.spring.data.couchbase2b.service;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertFalse;
@ -7,9 +7,9 @@ import static org.junit.Assert.assertTrue;
import java.util.List; import java.util.List;
import org.baeldung.spring.data.couchbase.model.Person; import com.baeldung.spring.data.couchbase.model.Person;
import org.baeldung.spring.data.couchbase2b.MultiBucketCouchbaseConfig; import com.baeldung.spring.data.couchbase2b.MultiBucketLiveTest;
import org.baeldung.spring.data.couchbase2b.MultiBucketLiveTest; import com.baeldung.spring.data.couchbase2b.MultiBucketCouchbaseConfig;
import org.joda.time.DateTime; import org.joda.time.DateTime;
import org.junit.BeforeClass; import org.junit.BeforeClass;
import org.junit.Test; import org.junit.Test;

View File

@ -1,4 +1,4 @@
package org.baeldung.spring.data.couchbase2b.service; package com.baeldung.spring.data.couchbase2b.service;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertFalse;
@ -9,9 +9,9 @@ import java.util.List;
import javax.validation.ConstraintViolationException; import javax.validation.ConstraintViolationException;
import org.baeldung.spring.data.couchbase.model.Student; import com.baeldung.spring.data.couchbase.model.Student;
import org.baeldung.spring.data.couchbase2b.MultiBucketCouchbaseConfig; import com.baeldung.spring.data.couchbase2b.MultiBucketCouchbaseConfig;
import org.baeldung.spring.data.couchbase2b.MultiBucketLiveTest; import com.baeldung.spring.data.couchbase2b.MultiBucketLiveTest;
import org.joda.time.DateTime; import org.joda.time.DateTime;
import org.junit.BeforeClass; import org.junit.BeforeClass;
import org.junit.Test; import org.junit.Test;

View File

@ -4,5 +4,5 @@ This module contains articles about Spring Data with EclipseLink.
### Relevant articles ### Relevant articles
- [A Guide to EclipseLink with Spring](http://www.baeldung.com/spring-eclipselink) - [A Guide to EclipseLink with Spring](https://www.baeldung.com/spring-eclipselink)
- [Pessimistic Locking in JPA](https://www.baeldung.com/jpa-pessimistic-locking) - [Pessimistic Locking in JPA](https://www.baeldung.com/jpa-pessimistic-locking)

View File

@ -1,4 +1,4 @@
package org.baeldung; package com.baeldung;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;

View File

@ -1,11 +1,11 @@
## Spring Data Elasticsearch ## Spring Data Elasticsearch
### Relevant Articles: ### Relevant Articles:
- [Introduction to Spring Data Elasticsearch](http://www.baeldung.com/spring-data-elasticsearch-tutorial) - [Introduction to Spring Data Elasticsearch](https://www.baeldung.com/spring-data-elasticsearch-tutorial)
- [Elasticsearch Queries with Spring Data](http://www.baeldung.com/spring-data-elasticsearch-queries) - [Elasticsearch Queries with Spring Data](https://www.baeldung.com/spring-data-elasticsearch-queries)
- [Guide to Elasticsearch in Java](http://www.baeldung.com/elasticsearch-java) - [Guide to Elasticsearch in Java](https://www.baeldung.com/elasticsearch-java)
- [Geospatial Support in ElasticSearch](http://www.baeldung.com/elasticsearch-geo-spatial) - [Geospatial Support in ElasticSearch](https://www.baeldung.com/elasticsearch-geo-spatial)
- [A Simple Tagging Implementation with Elasticsearch](http://www.baeldung.com/elasticsearch-tagging) - [A Simple Tagging Implementation with Elasticsearch](https://www.baeldung.com/elasticsearch-tagging)
### Build the Project with Tests Running ### Build the Project with Tests Running
``` ```

View File

@ -1,4 +1,4 @@
package org.baeldung; package com.baeldung;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;

View File

@ -1,3 +1,3 @@
### Relevant articles ### Relevant articles
- [A Guide to GemFire with Spring Data](http://www.baeldung.com/spring-data-gemfire) - [A Guide to GemFire with Spring Data](https://www.baeldung.com/spring-data-gemfire)

View File

@ -1,4 +1,4 @@
package org.baeldung; package com.baeldung;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;

View File

@ -1,4 +1,4 @@
package org.baeldung; package com.baeldung;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;

View File

@ -1,4 +1,4 @@
package org.baeldung; package com.baeldung;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;

View File

@ -3,4 +3,4 @@
This module contains articles about Spring Data Key-Value This module contains articles about Spring Data Key-Value
### Relevant Articles: ### Relevant Articles:
- [A Guide to Spring Data Key Value](http://www.baeldung.com/spring-data-key-value) - [A Guide to Spring Data Key Value](https://www.baeldung.com/spring-data-key-value)

View File

@ -1,4 +1,4 @@
package org.baeldung; package com.baeldung;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;

View File

@ -1,8 +1,8 @@
## Spring Data Neo4j ## Spring Data Neo4j
### Relevant Articles: ### Relevant Articles:
- [Introduction to Spring Data Neo4j](http://www.baeldung.com/spring-data-neo4j-intro) - [Introduction to Spring Data Neo4j](https://www.baeldung.com/spring-data-neo4j-intro)
- [A Guide to Neo4J with Java](http://www.baeldung.com/java-neo4j) - [A Guide to Neo4J with Java](https://www.baeldung.com/java-neo4j)
### Build the Project with Tests Running ### Build the Project with Tests Running
``` ```

View File

@ -1,4 +1,4 @@
package org.baeldung; package com.baeldung;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;

View File

@ -1,8 +1,8 @@
## Spring Data Redis ## Spring Data Redis
### Relevant Articles: ### Relevant Articles:
- [Introduction to Spring Data Redis](http://www.baeldung.com/spring-data-redis-tutorial) - [Introduction to Spring Data Redis](https://www.baeldung.com/spring-data-redis-tutorial)
- [PubSub Messaging with Spring Data Redis](http://www.baeldung.com/spring-data-redis-pub-sub) - [PubSub Messaging with Spring Data Redis](https://www.baeldung.com/spring-data-redis-pub-sub)
- [An Introduction to Spring Data Redis Reactive](https://www.baeldung.com/spring-data-redis-reactive) - [An Introduction to Spring Data Redis Reactive](https://www.baeldung.com/spring-data-redis-reactive)
### Build the Project with Tests Running ### Build the Project with Tests Running

View File

@ -1,4 +1,4 @@
package org.baeldung; package com.baeldung;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;

View File

@ -3,4 +3,4 @@
This module contains articles about Spring Data with Solr. This module contains articles about Spring Data with Solr.
### Relevant Articles: ### Relevant Articles:
- [Introduction to Spring Data Solr](http://www.baeldung.com/spring-data-solr) - [Introduction to Spring Data Solr](https://www.baeldung.com/spring-data-solr)

View File

@ -1,4 +1,4 @@
package org.baeldung; package com.baeldung;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;