Skip to content

Commit 350acf6

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 ab94a94 commit 350acf6

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
@@ -35,6 +35,7 @@
3535
import org.springframework.context.ApplicationContextAware;
3636
import org.springframework.core.CollectionFactory;
3737
import org.springframework.core.convert.ConversionService;
38+
import org.springframework.core.convert.TypeDescriptor;
3839
import org.springframework.core.convert.support.DefaultConversionService;
3940
import org.springframework.data.annotation.Reference;
4041
import org.springframework.data.convert.CustomConversions;
@@ -2131,6 +2132,11 @@ public List<org.springframework.data.util.TypeInformation<?>> getTypeArguments()
21312132
public org.springframework.data.util.TypeInformation<? extends S> specialize(ClassTypeInformation type) {
21322133
return delegate.specialize(type);
21332134
}
2135+
2136+
@Override
2137+
public TypeDescriptor toTypeDescriptor() {
2138+
return delegate.toTypeDescriptor();
2139+
}
21342140
}
21352141

21362142
/**

0 commit comments

Comments
 (0)