Skip to content

Commit 198fcbb

Browse files
committed
Adapt to API changes in Spring Data Commons.
spring-projects/spring-data-commons#2518 introduced TypeInformation.getTypeDescriptor() which we need to implement in our custom FieldTypeInformation.
1 parent a2b3e85 commit 198fcbb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/MappingMongoConverter.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
import org.springframework.context.ApplicationContextAware;
4545
import org.springframework.core.CollectionFactory;
4646
import org.springframework.core.convert.ConversionService;
47+
import org.springframework.core.convert.TypeDescriptor;
4748
import org.springframework.core.convert.support.DefaultConversionService;
4849
import org.springframework.data.annotation.Reference;
4950
import org.springframework.data.convert.CustomConversions;
@@ -2189,6 +2190,11 @@ public List<org.springframework.data.util.TypeInformation<?>> getTypeArguments()
21892190
public org.springframework.data.util.TypeInformation<? extends S> specialize(ClassTypeInformation type) {
21902191
return delegate.specialize(type);
21912192
}
2193+
2194+
@Override
2195+
public TypeDescriptor toTypeDescriptor() {
2196+
return delegate.toTypeDescriptor();
2197+
}
21922198
}
21932199

21942200
/**

0 commit comments

Comments
 (0)