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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user