Skip to content

Commit ed7d6b2

Browse files
babltigamikereiche
authored andcommitted
Register CouchbaseDocument and CouchbaseList as simple types (datastore supported) to get rid of conversation warning messages. (#1711)
Closes #1700.
1 parent 7a402ab commit ed7d6b2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/java/org/springframework/data/couchbase/core/convert/CouchbaseCustomConversions.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
import org.springframework.data.convert.PropertyValueConverterRegistrar;
4141
import org.springframework.data.convert.SimplePropertyValueConversions;
4242
import org.springframework.data.couchbase.core.mapping.CouchbasePersistentProperty;
43+
import org.springframework.data.couchbase.core.mapping.CouchbaseSimpleTypes;
4344
import org.springframework.data.mapping.PersistentProperty;
4445
import org.springframework.data.mapping.model.SimpleTypeHolder;
4546
import org.springframework.util.Assert;
@@ -54,7 +55,8 @@
5455
* @author Oliver Gierke
5556
* @author Mark Paluch
5657
* @author Subhashni Balakrishnan
57-
* @Michael Reiche
58+
* @author Michael Reiche
59+
* @author Tigran Babloyan
5860
* @see org.springframework.data.convert.CustomConversions
5961
* @see SimpleTypeHolder
6062
* @since 2.0
@@ -74,7 +76,7 @@ public class CouchbaseCustomConversions extends org.springframework.data.convert
7476
converters.addAll(OtherConverters.getConvertersToRegister());
7577

7678
STORE_CONVERTERS = Collections.unmodifiableList(converters);
77-
STORE_CONVERSIONS = StoreConversions.of(SimpleTypeHolder.DEFAULT, STORE_CONVERTERS);
79+
STORE_CONVERSIONS = StoreConversions.of(CouchbaseSimpleTypes.DOCUMENT_TYPES, STORE_CONVERTERS);
7880
}
7981

8082
/**

0 commit comments

Comments
 (0)