But it’s not working, even though the generated sql .getSQL() states its in place:
select this.ProdCode10 as y0_ from testtable this_ where this.ProductNameAbr like ? group by this.ProdCode10
I actually came across an odd behavior:
If you leave in c.count() the projection is ignored, like it wasn’t even processed even though getSQL() states its there.
However, if I remove the c.count() it errors (as it should really).
I remember an issue like this before, it had to do with issues with adding count() after the list(), if I remember correctly.