-->
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: Modifying static HQL query
PostPosted: Mon Mar 31, 2008 11:42 am 
Newbie

Joined: Mon Mar 31, 2008 2:03 am
Posts: 1
Hello friends,


I have an HQL query in an hbm file. This query is executed successfully.
But now I want to modify this query (given in hbm) at runtime. I want to add ORDER BY clause in the existing query.

Can you please tell me how to do that ?

I cant use Criteria class as I don't have to build the whole query dynamically, instead I have to modify a part of the already existing query.

If I try to change the query string, I get an error stating "unexpected character {". Even when I used QueryTranslatorImpl class, I got the same error.

Can anyone please tell me how to tackle this problem ?

Thanks,
Vk


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.