Skip to content

QueryDSL does not work with DBRef [DATAMONGO-362] #1294

Closed
@spring-projects-issues

Description

@spring-projects-issues

Raman Gupta opened DATAMONGO-362 and commented

When an object refers to another object with a @DbRef, QueryDSL cannot be used to navigate "across" the @DbRef. For example:

@Document
Obj1 {
  @DbRef Obj2 obj2Ref;
}

Obj2 {
  String foo;
}

obj1Repo.findOne(QObj1.obj1.obj2Ref.foo.eq("foovalue")) returns null


Affects: 1.0.1, 1.1 M1

Issue Links:

  • DATAMONGO-1848 Migrate to Document API-based Querydsl implementation
    ("depends on")

Referenced from: pull request #13

2 votes, 7 watchers

Metadata

Metadata

Assignees

Labels

in: mappingMapping and conversion infrastructuretype: enhancementA general enhancement

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions