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
DATAMONGO-761 - Fix path key lookup for non-properties in SpringDataMongoDBSerializer.
In our Querydsl MongodbSerializer implementation we now only inspect the MongoPersistentProperty for a field name if the given path is really a property path. Previously we tried to always resolve a persistent property even if the given path was an array index path, a map key or the like.
Copy file name to clipboardExpand all lines: spring-data-mongodb/src/main/java/org/springframework/data/mongodb/repository/support/SpringDataMongodbSerializer.java
+5
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,7 @@
28
28
importcom.mysema.query.mongodb.MongodbSerializer;
29
29
importcom.mysema.query.types.Path;
30
30
importcom.mysema.query.types.PathMetadata;
31
+
importcom.mysema.query.types.PathType;
31
32
32
33
/**
33
34
* Custom {@link MongodbSerializer} to take mapping information into account when building keys for constraints.
@@ -61,6 +62,10 @@ public SpringDataMongodbSerializer(MongoConverter converter) {
Copy file name to clipboardExpand all lines: spring-data-mongodb/src/test/java/org/springframework/data/mongodb/repository/support/SpringDataMongodbSerializerUnitTests.java
0 commit comments