A Hibernate (and NHibernate) feature that allows for both HQL and SQL queries to be stored in a file
A Hibernate (and NHibernate) feature that allows for both HQL and SQL queries to be stored in a file ending with *.hbm.xml
. The main advantage is that your query is precompiled when the application starts up, and any errors in the query can be caught ahead of runtime.