This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Correlated subqueries in HQL Select Clause

Amandeep Singh Khurpal
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am Trying use correlated Queries in HQL (in select clause) for the first time and i am having the problem, Please help

My HQL Query is of type

As per the Hibernate Documentation "HQL subqueries can occur only in the select or where clauses.Even correlated subqueries (subqueries that refer to an alias in the outer query) are allowed. "

But when i execute my HQl I have this Error
"org.hibernate.QueryException: aggregate function expected before ( in SELECT"

I have seen the selectParser of hibernate and it expects a Aggregate function whenever "(" is encountered

Please suggest

Thanks in Advance

I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic