-->
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: Select statement
PostPosted: Mon Nov 17, 2008 8:51 am 
Newbie

Joined: Mon Sep 01, 2008 8:17 am
Posts: 2
Hi,

in Sql it is possible to write such code:

Select * from ( Select ...)

When i write this code in hql, i got every time a QuerySyntaxException.
I need this for ordering by the different columns, and 2 are subselects.


Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 17, 2008 12:32 pm 
Newbie

Joined: Wed Oct 08, 2008 1:54 am
Posts: 14
Afaik subselcts in the From clause are not possible in HWL as of now.
http://opensource.atlassian.com/project ... e/HHH-3356

However if you are only trying to order the result it should be possible to do that by using a join and an order by with two parameters. Can you paste the full HQL statement?


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.