-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
Milestone
Description
Poorna Subhash opened DATAMONGO-888 and commented
during find() method with query that has Sort clause. The mapping hasn't been applied to Sort Object.
For e.g., I defined a filed as Id as followed.
@Id
private String orderId.
Then I have query condition like this. query.with(new Sort("orderId"));
Then the actual query should be sorted on "_id" (after mapping). But the sort is sent as is with "orderId".
I have found this for find() method. May be the case in all places where the Sort Object is used.
Affects: 1.4.1 (Codd SR1)
Issue Links:
- DATAMONGO-647 Using "OrderBy" in "query by method name" ignores the
@Field
annotation for field alias
Referenced from: pull request #162
Backported to: 1.4.2 (Codd SR2)