Hi ihave this Hql query and i dont know how tio make it work anybody could help me?? Everything is fine unless I put something in the where clause that is referencing on a Class that is left join. e.g : in this case if I dont put t.IdType = 2 it works fine but when its in the query i get an error.
Code:
select count(m) from MediaRadio as m left join fetch m.TypeMedia as t where m.Nom LIKE '%ck%' AND t.IdType = 2
I get this Error
Code:
Column 'typemedi1_.IdTypeMedia' is invalid in the select list because it is not contained in an aggregate function and there is no GROUP BY clause.
thank you
Simon[/quote]