Need a way to query elements of an collections

Bug #658206 reported by Lassi Immonen
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: mongodb
tags: added: mongodb
Changed in querydsl:
importance: Undecided → Medium
assignee: nobody → Timo Westkämper (timo-westkamper)
status: New → In Progress
Revision history for this message
Timo Westkämper (timo-westkamper) wrote :

Access is now possible through the any() method.

e.g.

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

Changed in querydsl:
status: In Progress → Fix Committed
Revision history for this message
Timo Westkämper (timo-westkamper) wrote :

Released in 2.0.2

Changed in querydsl:
status: Fix Committed → Fix Released
Revision history for this message
Timo Westkämper (timo-westkamper) wrote :

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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.