Collections : Supporting extending existing QueryMetadata

Bug #777768 reported by Timo Westkämper on 2011-05-05
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Querydsl
Fix Released
Undecided
Unassigned

Bug Description

Here is a simple test case which demonstrates this possibility :

    @Test
    public void Reusage(){
        QueryMetadata metadata = new DefaultQueryMetadata();
        metadata.addJoin(JoinType.DEFAULT, cat);
        metadata.addWhere(cat.name.startsWith("A"));

        ColQuery query = new ColQueryImpl(metadata);
        query.bind(cat, cats);
        assertEquals(Arrays.asList(c3), query.list(cat));
    }

The new ColQuery.bind method supports this.

Changed in querydsl:
status: New → Fix Committed
description: updated

Released in 2.2.0.beta5

Changed in querydsl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers