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.
This commit is contained in:
Stephane Nicoll
2020-01-27 13:33:06 +01:00
parent 63b736d1f0
commit a1e6a20915

View File

@@ -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;