File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
main/java/org/springframework/data/mongodb/core/convert
test/java/org/springframework/data/mongodb/core/convert Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 33
33
import org .bson .Document ;
34
34
import org .bson .conversions .Bson ;
35
35
import org .bson .types .ObjectId ;
36
+
36
37
import org .springframework .core .convert .ConversionService ;
37
38
import org .springframework .core .convert .converter .Converter ;
38
39
import org .springframework .data .domain .Example ;
@@ -1078,7 +1079,7 @@ private PersistentPropertyPath<MongoPersistentProperty> getPath(String pathExpre
1078
1079
* Querydsl happens to map id fields directly to {@literal _id} which breaks {@link PropertyPath} resolution. So if
1079
1080
* the first attempt fails we try to replace {@literal _id} with just {@literal id} and see if we can resolve if
1080
1081
* then.
1081
- *
1082
+ *
1082
1083
* @param path
1083
1084
* @return the path or {@literal null}
1084
1085
*/
Original file line number Diff line number Diff line change 34
34
import org .junit .runner .RunWith ;
35
35
import org .mockito .Mock ;
36
36
import org .mockito .junit .MockitoJUnitRunner ;
37
+
37
38
import org .springframework .data .annotation .Id ;
38
39
import org .springframework .data .domain .Sort ;
39
40
import org .springframework .data .domain .Sort .Direction ;
You can’t perform that action at this time.
0 commit comments