title: Get the named query string within JPA
body: <p>I am trying to externalize all named queries for JPA in an orm.xml file. I would like to get the named query string in my Java program for some manipulation purposes but JPA doesnt seem to expose any method that returns the named query as a string. All I can do is <code>createNamedQuery</code> with the name of the named query.</p>
  
  <p>Is there any other way around this problem to get the named query string like Hibernate exposes ? Similar to <code>getSession().getNamedQuery("namedQueryName");</code> in JPA?</p>
  
  <p>Thanks,
  Sonu.</p>