-->
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: how can I use order by colum asc null first with HQL
PostPosted: Wed May 25, 2011 3:10 pm 
Newbie

Joined: Tue Dec 09, 2008 11:55 am
Posts: 7
I have a simple query that need put the null or empty string first in result set by work with HQL , but HQL just ignore the "null first..."
so this make my sorting is not correct...
but the query is running very well in oracle database or with JDBC

can any body help or any idea?

Thanks!


Top
 Profile  
 
 Post subject: Re: how can I use order by colum asc null first with HQL
PostPosted: Thu May 26, 2011 12:13 pm 
Newbie

Joined: Tue Dec 09, 2008 11:55 am
Posts: 7
Hi Hibernate Team,

and, I have start to use hibernate native Sqlquery. but the thing is that the transformer matching is quite some restriction, if in future, it can auto match either property of entity class or column of table in db ...?

any idea?
Thanks!


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.