Error in creating alias in formula tag
Posted
by Senthilnathan
on Stack Overflow
See other posts from Stack Overflow
or by Senthilnathan
Published on 2010-02-22T05:47:17Z
Indexed on
2010/05/02
16:57 UTC
Read the original article
Hit count: 251
Hi all
I have a sql query in formula tag inside property tag.
In that query i am creating alias name but the hibernate appends table name and throwing me error.
select sum(e.salary) as sal from employee e
but hibernate changes to
select sum(e.salary) as employee.sal from employee e
how to avoid this ....
it should recognise as sal inside of employee.sal !!!
© Stack Overflow or respective owner