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: Order by function works in HQL but not criteria
PostPosted: Sat Nov 03, 2007 6:28 am 
Expert
Expert

Joined: Tue Aug 23, 2005 5:52 am
Posts: 335
I'm trying to execute a query where I'm using an function as an order by clause in HQL. This works; however if I try to use the same function as an order by in criteria it fails saying no property with the function name exists.

I've been toying with the idea of fixing this problem in the NHibernate source, however I'm not sure whether the order by in HQL is slipping through due to shortcomings in the HQL parser or whether this should be acceptable behavior and should be migrated to the criteria interface.

Can anyone shed some light?

Cheers,

Symon.


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.