You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix raw document conversion in Collection like properties.
Along the lines make sure to convert map like structures correctly if they do not come as a Document, eg. cause they got converted to a plain Map in a post load, pre convert event.
Closes#3702
Original pull request: #3704.
Copy file name to clipboardExpand all lines: spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/MappingMongoConverter.java
+13-1
Original file line number
Diff line number
Diff line change
@@ -2040,7 +2040,19 @@ public <S extends Object> S convert(Object source, TypeInformation<? extends S>
2040
2040
}
2041
2041
2042
2042
if (typeHint.isMap()) {
2043
-
return (S) mapConverter.convert(this, (Bson) source, typeHint);
Copy file name to clipboardExpand all lines: spring-data-mongodb/src/test/java/org/springframework/data/mongodb/core/convert/MappingMongoConverterUnitTests.java
0 commit comments