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
|