title: JPA XML Query File
body: <p>I would like to include all named queries in a separate XML file and use it in persistence. How can I accomplish the same?</p>
  
  <p>I am using Toplink JPA in a JSF-Web application. Actually, I am not able to get the directory/file structure to use.</p>
  
  <p>I tried to use <code>&lt;mapping-file&gt;</code> in <code>persistence.xml</code> and tried to place the query file in several locations. Every time I am getting exception.</p>