Commit 06e36b6b authored by Andy Wilkinson's avatar Andy Wilkinson

Revert "Update code for Spring Data 2021.0.0-M3"

This reverts commit 4b0ef67e.

See gh-25004
parent 38610a6c
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment