Skip to content

Commit 06e36b6

Browse files
committed
Revert "Update code for Spring Data 2021.0.0-M3"
This reverts commit 4b0ef67. See gh-25004
1 parent 38610a6 commit 06e36b6

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/data/couchbase/CouchbaseClientFactoryDependentConfiguration.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
import org.springframework.data.couchbase.config.BeanNames;
2525
import org.springframework.data.couchbase.core.CouchbaseTemplate;
2626
import org.springframework.data.couchbase.core.convert.MappingCouchbaseConverter;
27-
import org.springframework.data.couchbase.core.index.CouchbasePersistentEntityIndexCreator;
28-
import org.springframework.data.couchbase.core.mapping.CouchbaseMappingContext;
2927
import org.springframework.data.couchbase.repository.config.RepositoryOperationsMapping;
3028

3129
/**
@@ -51,12 +49,4 @@ RepositoryOperationsMapping couchbaseRepositoryOperationsMapping(CouchbaseTempla
5149
return new RepositoryOperationsMapping(couchbaseTemplate);
5250
}
5351

54-
@Bean
55-
@ConditionalOnMissingBean
56-
CouchbasePersistentEntityIndexCreator couchbasePersistentEntityIndexCreator(CouchbaseDataProperties properties,
57-
CouchbaseMappingContext couchbaseMappingContext, CouchbaseClientFactory clientFactory) {
58-
return new CouchbasePersistentEntityIndexCreator(couchbaseMappingContext, clientFactory,
59-
properties.getTypeKey(), properties.isAutoIndex());
60-
}
61-
6252
}

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/data/couchbase/CouchbaseDataConfiguration.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ CouchbaseMappingContext couchbaseMappingContext(CouchbaseDataProperties properti
7272
mappingContext
7373
.setFieldNamingStrategy((FieldNamingStrategy) BeanUtils.instantiateClass(fieldNamingStrategy));
7474
}
75+
mappingContext.setAutoIndexCreation(properties.isAutoIndex());
7576
return mappingContext;
7677
}
7778

0 commit comments

Comments
 (0)