Skip to content

Mapping is not applied to SortObject during queries. [DATAMONGO-888] #1814

@spring-projects-issues

Description

@spring-projects-issues

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)

Metadata

Metadata

Labels

in: coreIssues in core supporttype: bugA general bug

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions