No string type for @QueryType
Bug #791043 reported by
Maia Everett
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.
To post a comment you must log in.
Fixed in SVN trunk. Here is an example from a test :
@QueryEntity
public class Entity {
Integer numberAsString;
}
@Test Like(){
QPropertyTypeT est_Entity. entity. numberAsString. like("a" );
public void NumberAsString_
}