diff --git a/reference/en/modules/session_api.xml b/reference/en/modules/session_api.xml index dd953f6afc..b0ec43d893 100644 --- a/reference/en/modules/session_api.xml +++ b/reference/en/modules/session_api.xml @@ -455,7 +455,7 @@ cats.close()]]> - + Externalizing named queries @@ -464,7 +464,7 @@ cats.close()]]> be interpreted as markup.) - ? @@ -474,7 +474,7 @@ cats.close()]]> Parameter binding and executing is done programatically: - @@ -485,6 +485,14 @@ List cats = q.list();]]> existing queries to Hibernate by placing them in mapping files. + + Also note that a query declaration inside a <hibernate-mapping> + element requires a global unique name for the query, while a query declaration inside a + <class> element is made unique automatically by prepending the + fully qualified name of the class, for example + eg.Cat.ByNameAndMaximumWeight. + +