-->
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: Saving named queries to external locations
PostPosted: Sun Jan 06, 2008 10:59 am 
Newbie

Joined: Wed Nov 28, 2007 7:55 pm
Posts: 6
Hello,
I'm wondering if it makes sense to store named queries in a location entirely external to the application, e.g. to an external file or the database. This could make sense in some rare cases when the HQL query is incorrect and there are no changes to the actual Java code necessary. In this case changing the query would not require recompiling the application.

What do other people think about this?

Papapara Tudu


Top
 Profile  
 
 Post subject: Re: Saving named queries to external locations
PostPosted: Wed Jan 09, 2008 10:49 pm 
Expert
Expert

Joined: Wed Apr 11, 2007 11:39 am
Posts: 735
Location: Montreal, QC
Papapara Tudu wrote:
Hello,
I'm wondering if it makes sense to store named queries in a location entirely external to the application, e.g. to an external file or the database. This could make sense in some rare cases when the HQL query is incorrect and there are no changes to the actual Java code necessary. In this case changing the query would not require recompiling the application.

What do other people think about this?

Papapara Tudu



I am not too surprised if HB does not support this since these kind of problems are development issues and it does not make much sense to ship a software with a wrong query and try to patch it with a file replacement. However, if you like, you can put your queries in a file and load them into hibernate with the current API hibernate has.


Farzad-


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.