From a1e6a20915aa1f8456363d9ef01c3fdc37941553 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Mon, 27 Jan 2020 13:33:06 +0100 Subject: [PATCH] Simplify default value for Spring Data Couchbase's typeKey This commit hard codes the default value so that the annotation processor picks it up. The default value is tested for consistency so this is acceptable as providing the default value in the metadata requires to hard code it anyway. --- .../autoconfigure/data/couchbase/CouchbaseDataProperties.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/data/couchbase/CouchbaseDataProperties.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/data/couchbase/CouchbaseDataProperties.java index f7930803b8..f1d56e5788 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/data/couchbase/CouchbaseDataProperties.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/data/couchbase/CouchbaseDataProperties.java @@ -17,7 +17,6 @@ package org.springframework.boot.autoconfigure.data.couchbase; import org.springframework.boot.context.properties.ConfigurationProperties; -import org.springframework.data.couchbase.core.convert.DefaultCouchbaseTypeMapper; import org.springframework.data.couchbase.core.query.Consistency; /** @@ -44,7 +43,7 @@ public class CouchbaseDataProperties { * Name of the field that stores the type information for complex types when using * "MappingCouchbaseConverter". */ - private String typeKey = DefaultCouchbaseTypeMapper.DEFAULT_TYPE_KEY; + private String typeKey = "_class"; public boolean isAutoIndex() { return this.autoIndex;