Version: Latest 3.1.x
It appears that when using class based projection we can't have exp in our package name.
select new com.company.exp.thing.stuff.ClassName(
e.id,
cast(round(coalesce(SUM(e.amount), 0),2) as decimal) as amountTotal
)
from Experience e
group by e.id
Antlr output:
line 1:22 mismatched input '.' expecting '('
line 1:32 mismatched input '.' expecting {, ',', EXCEPT, FROM, GROUP, INTERSECT, ORDER, UNION, WHERE}