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-