Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
[b]Hibernate version:3.2.6[/b]
[b]Name and version of the database you are using: oracle 9i[/b]
Hi I am trying to write a HQL with next lines:
select groupname, sum(value),
count(distinct nvl(id2, id1))
from table
group by groupname
When code run, it give me error as:
org.springframework.orm.hibernate3.HibernateQueryException: expecting CLOSE, found '(' near line 2, column 14 [ ......]; nested exception is org.hibernate.hql.ast.QuerySyntaxException: expecting CLOSE, found '(' near line 3,
Codes can run when I put:
select groupname, sum(value),
count(distinct id1)
from table
group by groupname
Please give me a hint how to resolve it? Or is it a bug in hibernate?
Thanks