Revert "Update code for Spring Data 2021.0.0-M3"
This reverts commit 4b0ef67e8e
.
See gh-25004
This commit is contained in:
parent
38610a6cae
commit
06e36b6bbe
|
@ -24,8 +24,6 @@ import org.springframework.data.couchbase.CouchbaseClientFactory;
|
|||
import org.springframework.data.couchbase.config.BeanNames;
|
||||
import org.springframework.data.couchbase.core.CouchbaseTemplate;
|
||||
import org.springframework.data.couchbase.core.convert.MappingCouchbaseConverter;
|
||||
import org.springframework.data.couchbase.core.index.CouchbasePersistentEntityIndexCreator;
|
||||
import org.springframework.data.couchbase.core.mapping.CouchbaseMappingContext;
|
||||
import org.springframework.data.couchbase.repository.config.RepositoryOperationsMapping;
|
||||
|
||||
/**
|
||||
|
@ -51,12 +49,4 @@ class CouchbaseClientFactoryDependentConfiguration {
|
|||
return new RepositoryOperationsMapping(couchbaseTemplate);
|
||||
}
|
||||
|
||||
@Bean
|
||||
@ConditionalOnMissingBean
|
||||
CouchbasePersistentEntityIndexCreator couchbasePersistentEntityIndexCreator(CouchbaseDataProperties properties,
|
||||
CouchbaseMappingContext couchbaseMappingContext, CouchbaseClientFactory clientFactory) {
|
||||
return new CouchbasePersistentEntityIndexCreator(couchbaseMappingContext, clientFactory,
|
||||
properties.getTypeKey(), properties.isAutoIndex());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -72,6 +72,7 @@ class CouchbaseDataConfiguration {
|
|||
mappingContext
|
||||
.setFieldNamingStrategy((FieldNamingStrategy) BeanUtils.instantiateClass(fieldNamingStrategy));
|
||||
}
|
||||
mappingContext.setAutoIndexCreation(properties.isAutoIndex());
|
||||
return mappingContext;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue