Browse Source

Polish "Stop considering persistent when scanning for Couchbase entities"

See gh-28124
pull/28162/head
Stephane Nicoll 4 years ago
parent
commit
14fc0f78b2
  1. 3
      spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/data/couchbase/CouchbaseDataConfiguration.java

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

@ -63,8 +63,7 @@ class CouchbaseDataConfiguration { @@ -63,8 +63,7 @@ class CouchbaseDataConfiguration {
ApplicationContext applicationContext, CouchbaseCustomConversions couchbaseCustomConversions)
throws Exception {
CouchbaseMappingContext mappingContext = new CouchbaseMappingContext();
mappingContext
.setInitialEntitySet(new EntityScanner(applicationContext).scan(Document.class));
mappingContext.setInitialEntitySet(new EntityScanner(applicationContext).scan(Document.class));
mappingContext.setSimpleTypeHolder(couchbaseCustomConversions.getSimpleTypeHolder());
Class<?> fieldNamingStrategy = properties.getFieldNamingStrategy();
if (fieldNamingStrategy != null) {

Loading…
Cancel
Save