title: @NamedStoredProcedureQuery NamedQuery of name: procuder not found
body: <p>Greeting for the day..</p>
  
  <p>Please provide me support. 
  I am new in Jpa and calling procuder with @NamedStoredProcedureQuery but my code is giving Exception as @NamedStoredProcedureQuery NamedQuery of name: procuder not found </p>
  
  <p>my code is :=</p>
  
  <pre><code>@NamedStoredProcedureQuery(name = "TEST1",procedureName = "TEST1",parameters = {    @StoredProcedureParameter(name = "P_CODE", mode = ParameterMode.IN, type = String.class),               @StoredProcedureParameter(name = "P_DATE", mode = ParameterMode.IN, type = String.class),               @StoredProcedureParameter(name = "P_CURSOR", mode = ParameterMode.REF_CURSOR, type = void.class), })
  public class AnotherWayOfCallingProcedure implements Serializable 
  {
      private static final String PERSISTENCE_UNIT_NAME = "todos";
      private static EntityManagerFactory factory;
      public static void main(String arg[]) {
          factory = Persistence.createEntityManagerFactory(PERSISTENCE_UNIT_NAME);
          EntityManager em = factory.createEntityManager();
          StoredProcedureQuery addBookNamedStoredProcedure = em.createNamedStoredProcedureQuery("TEST1");
          addBookNamedStoredProcedure.setParameter("P_CODE", "5000");
          addBookNamedStoredProcedure.setParameter("P_DATE", "5/3/2017");
          // Stored procedure call
          List createdBookId = addBookNamedStoredProcedure.getResultList();
           em.close();
      }
  }
  </code></pre>
  
  <p>and <code>persistence.xml</code> is</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  &lt;persistence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
          version="2.0" xmlns="http://java.sun.com/xml/ns/persistence"&gt;
      &lt;persistence-unit name="todos" transaction-type="RESOURCE_LOCAL"&gt;
          &lt;class&gt;com.app.IptAnchorageAreaMaster&lt;/class&gt;
          &lt;class&gt;com.app.AnotherWayOfCallingProcedure&lt;/class&gt;
          &lt;properties&gt;
          &lt;property name="javax.persistence.jdbc.driver" value="oracle.jdbc.driver.OracleDriver" /&gt;
          &lt;property name="javax.persistence.jdbc.url" value="jdbc:oracle:thin:@192.168.6.147:1521:orcl" /&gt;
          &lt;property name="javax.persistence.jdbc.user" value="aaa_kkk" /&gt;
          &lt;property name="javax.persistence.jdbc.password" value="aaa" /&gt;
          &lt;!-- EclipseLink should create the database schema automatically --&gt;
          &lt;property name="eclipselink.ddl-generation" value="none" /&gt;
          &lt;property name="eclipselink.ddl-generation.output-mode" value="database" /&gt;
          &lt;/properties&gt;
      &lt;/persistence-unit&gt;
  &lt;/persistence&gt;
  </code></pre>