My problem
If I want send question :
select new SimplePositionDEPOValue(sum(p.giveAmt * p.giveAmtPer360), p.valueDateIn, count(*)) from PositionDEPOValue p group by p.valueDateIn
[STDOUT] net.sf.hibernate.PropertyNotFoundException: no appropriate constructor in class: SimplePositionDEPOValue.
What's wrong :
Similary question is good:
select new SimplePositionDEPOValue(sum(p.giveAmt + p.giveAmtPer360), p.valueDateIn, count(*)) from PositionDEPOValue p group by p.valueDateIn
Why don't operator '*' admit in agregate function sum()?
Mariusz Mach
|