The parsing of predicates in the where clause has a bug. When the depth of the property is greater than 1 (from the root object) then the property does not get converted into the appropriate DB column.
For example, with a query on BugDetail objects, bug.product.name has a depth of 2 relative to BugDetail... and 'bug.product.name' is not converted to the appropriate db column.
dsf
SELECT d.id, d.body, d.cretime, d.post_date, d.title, d.updtime, d.bug_id, d.user_id FROM b_bug_detail dJOIN b_bug bb ON d.bug_id = bb.id WHERE bug.product.name LIKE ?
And bug.product.name has not been translated to the approriate DB column.
This is a bug in this class. Lines 154 to 161, can be replaced by just... String search = propertyPrefix '.';
Fixed in 0.9.3