No string type for @QueryType

Bug #791043 reported by Maia Everett on 2011-06-01
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Querydsl
Fix Released
Undecided
Unassigned

Bug Description

While @QueryType allows overriding the generated field type, the PropertyType enum lacks an item for generating a string path. This can be useful, for example, to perform a LIKE query on a number column, which QueryDSL, to my knowledge, doesn't support.

Fixed in SVN trunk. Here is an example from a test :

    @QueryEntity
    public class Entity {

        @QueryType(PropertyType.STRING)
        Integer numberAsString;

    }

    @Test
    public void NumberAsString_Like(){
        QPropertyTypeTest_Entity.entity.numberAsString.like("a");
    }

Changed in querydsl:
status: New → Fix Committed

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