It doesn't seem to. Here's my HQL query with the ifnull in. This query works without the ifnull bit (except that I have a null value instead of 16 of course).
The error I get is :
Code:
undefined alias: ifnull [select s.user, s.semaineId, sa.id, sum(ifnull(sc.charge, "16")) Saisie as s left outer join s.activities as sa left outer join sa.charges as sc group by s.semaineId, s.user, sa.id order by s.user, s.semaineId ]
Thanks for your help with this
Code:
select s.user, s.semaineId, sa.id, sum(ifnull(sc.charge, "16"))
from com.sncf.vfe.app.gact.metier.Saisie as s
left outer join s.activities as sa
left outer join sa.charges as sc
group by s.semaineId, s.user, sa.id
order by s.user, s.semaineId