title: Named SQL queries
body: <p>I have created domain objects using annotations and now I need some sql queries to be written to fetch/insert/update data from/to more than one table.</p>
  
  <p>Is there a way to keep only the sql queries in the hbm.xml file as named query because the domain objects are already created using annotations and I do not need to do it in xml way. If this is possible then what are the steps need to be followed, please advice.</p>
  
  <p><strong>Thanks in advance.</strong></p>