SQL : Projection type to populate multiple beans

Bug #652337 reported by Timo Westkämper
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Querydsl
Fix Released
Medium
Unassigned

Bug Description

Provided by Luis Fernando Planella Gonzalez :

        QPerson p = QPerson.person;
        QDepartment d = QDepartment.department;
        SQLQuery query =DB.from(p).innerJoin(p.departmentIdFk, d).orderBy(d.name.asc(), p.name.asc());
        List<Beans> rows = query.list(new QBeans(p, d));
        for (Beans beans : rows) {
            Person person = beans.get(p);
            Department department = beans.get(d);
            System.out.println(department.getName() + ", " + person.getName());
        }

description: updated
Revision history for this message
Timo Westkämper (timo-westkamper) wrote :

Fixed in SVN trunk

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

Released in 2.0.1

Changed in querydsl:
status: Fix Committed → Fix Released
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.