-->
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.  [ 1 post ] 
Author Message
 Post subject: A question about null value in "order by"
PostPosted: Fri Dec 11, 2009 12:09 am 
Newbie

Joined: Thu Dec 10, 2009 11:54 pm
Posts: 1
There is a hsql code: "select p from project p where p.manager=? order by p.company.name asc". When the "order by p.company.name asc" section is removed from the code, I will get the right result of project data. But I didn't get anything if this section is presented.
And then, I find that there are some wanted project data with company null value, so "p.company.name" is trouble code in the order section. But I don't know how to recorrect this hsql code.
I hope get all the proper project data whenever it's company property is null or not with dictionary order(The project data with company null value should be arranged at front position).
Look forward to your reply!


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

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.