Collections : Supporting extending existing QueryMetadata

Bug #777768 reported by Timo Westkämper
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
Revision history for this message
Timo Westkämper (timo-westkamper) wrote :

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

Other bug subscribers

Remote bug watches

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