-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: HQL not support subselect in from clause?
PostPosted: Sun Aug 06, 2006 9:12 am 
Beginner
Beginner

Joined: Fri Jan 13, 2006 11:19 am
Posts: 24
The error occur in the subselect after FROM clause. How can i solve it? I already tried the following 2 sql.
select count(*) FROM select...
select count(*) FROM ( select ...

Code:
org.springframework.orm.hibernate3.HibernateQueryException: unexpected token: select near line 1, column 25 [select count(*)  FROM   select sum(....


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 06, 2006 8:01 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
No - it is not supported in HQL.
You could use native SQL to solve the problem.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 08, 2006 3:22 am 
Beginner
Beginner

Joined: Fri Jan 13, 2006 11:19 am
Posts: 24
Why hql is not work?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 08, 2006 8:07 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
The HQL language thus the parser does not currently support it.
It a matter of someone decided to make HQL allow this format to happen.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.