-->
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.  [ 2 posts ] 
Author Message
 Post subject: Query in HQL from Clause
PostPosted: Wed Apr 19, 2006 10:41 am 
Newbie

Joined: Wed Apr 19, 2006 10:31 am
Posts: 1
I have a HQL query in the from clause and it keeps on complaining. Please see below for error and actual query:


net.sf.hibernate.QueryException: in expected: select [select distinct incident from ( select distinct rownum r, incident from com.bagnet.nettracer.tracing.db.Incident incident where 1=1 and incident.itemtype.itemType_ID = :itemType_ID order by incident.incident_ID ) where r between 0 and 15]




Any help will be highly appreciated.


Thanks,

Ankur


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 19, 2006 11:03 am 
Expert
Expert

Joined: Thu Sep 22, 2005 10:29 am
Posts: 285
Location: Almassera/Valencia/Spain/EU/Earth/Solar system/Milky Way/Local Group/Virgo Supercluster
HQL subqueries may occur only in the select or where clauses.

Hibernate reference
14.12. Subqueries


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.