Need a way to query elements of an collections

Bug #658206 reported by Lassi Immonen on 2010-10-11
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Querydsl
Fix Released
Medium
Timo Westkämper

Bug Description

In the Mongodb there is no joins and we need a way to create path expression where attributes of an element in a collection can be referred and queried.

For example:

Address
  street

User
  List<Address> addresses

QUser user

user.addresses.any().street.startsWith("abc")

tags: added: mongodb
Changed in querydsl:
importance: Undecided → Medium
assignee: nobody → Timo Westkämper (timo-westkamper)
status: New → In Progress

Access is now possible through the any() method.

e.g.

user.addresses.any().street.startsWith("abc")

Changed in querydsl:
status: In Progress → Fix Committed

Released in 2.0.2

Changed in querydsl:
status: Fix Committed → Fix Released

Doesn't yet work for Hibernate, since the collection path can't be continued with properties of the component type : http://opensource.atlassian.com/projects/hibernate/browse/HHH-2667

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers