title: createStoredProcedureQuery is not resolved
body: <p>here is my code and createStoredProcedureQuery has redline underneath in eclipse, and not resolved, I tried many ways still could not get what is wrong.</p>
  
  <pre><code>private static EntityManagerFactory factory;
  
  public static void main(String[] args) {
      factory = Persistence.createEntityManagerFactory("mypersistenceUnit");
      EntityManager em = factory.createEntityManager();
  
      // Create call stored procedure
      em.getTransaction().begin();
      StoredProcedureQuery storedProcedure = em.**createStoredProcedureQuery**("getCode");
      // set parameters
      storedProcedure.registerStoredProcedureParameter("name", String.class, ParameterMode.IN);
      storedProcedure.registerStoredProcedureParameter("num", String.class, ParameterMode.IN);
      storedProcedure.registerStoredProcedureParameter("code", String.class, ParameterMode.OUT);
  
      // execute SP
      storedProcedure.execute();
      // get result
      String code= (String)storedProcedure.getOutputParameterValue("code");
      System.out.println("code is: " + code);
      em.getTransaction().commit();
      em.close();
  }
  </code></pre>