-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query from method name has map entries in wrong order. #4577
Comments
@aschmalfeld thanks for reporting - guess that will require some digging where things go off route. |
christophstrobl
added a commit
that referenced
this issue
Dec 7, 2023
That's fixed now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In my class which extends from MongoRepository I have a method
where myCategories are e.g.:
When inserted into the Mongodb the order of key value pairs is as expected from a TreeMap, but when I call the method
findByMyCategories(myCategories) the mongoDB logs suggest the wrong order was used and therefore the object was not found.
This always returns the correct results for only one key value pair, for multiple pairs it is always wrong for some pairs
and always correct for others as if it is following some pattern.
It worked correctly before the update of
spring-data-mongodb
from 4.1.6 to 4.2.0A workaround is to annotate the method with
@Query
or@Aggregation
.The text was updated successfully, but these errors were encountered: