title: EntityManager.createStoredProcedureQuery() is not resolved
body: <p>I have Spring 4.1.0.Final, JPA hibernate-jpa-2.1-api and MySql. I am using this to develop REST APIs. Now I have a requirement to call a stored procedure. I got to make sure that <code>EntityManager.createStoredProcedureQuery()</code> is used to call a stored procedure. And this feature is available in JPA 2.1. I have already JPA 2.1 but still <code>EntityManager.createStoredProcedureQuery()</code> is not resolvable. Pasting the snapshot of maven configuration. </p>
  
  <p>Can you please let me know what may be the issue:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
     &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
     &lt;groupId&gt;com.test&lt;/groupId&gt;
     &lt;artifactId&gt;TESTAPI&lt;/artifactId&gt;
     &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
     &lt;packaging&gt;war&lt;/packaging&gt;
     &lt;name&gt;TESTAPI&lt;/name&gt;
     &lt;properties&gt;
        &lt;java-version&gt;1.8&lt;/java-version&gt;
        &lt;org.springframework-version&gt;4.2.5.RELEASE&lt;/org.springframework-version&gt;
        &lt;org.springframework-security-version&gt;4.1.1.RELEASE&lt;/org.springframework-security-version&gt;
        &lt;org.springframework-security-oauth-version&gt;2.0.10.RELEASE&lt;/org.springframework-security-oauth-version&gt;
        &lt;org.aspectj-version&gt;1.6.10&lt;/org.aspectj-version&gt;
        &lt;org.slf4j-version&gt;1.6.6&lt;/org.slf4j-version&gt;
        &lt;failOnMissingWebXml&gt;false&lt;/failOnMissingWebXml&gt;
     &lt;/properties&gt;
     &lt;dependencies&gt;
        &lt;!-- Spring --&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.springframework&lt;/groupId&gt;
           &lt;artifactId&gt;spring-core&lt;/artifactId&gt;
           &lt;version&gt;${org.springframework-version}&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.springframework&lt;/groupId&gt;
           &lt;artifactId&gt;spring-web&lt;/artifactId&gt;
           &lt;version&gt;${org.springframework-version}&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;!-- https://mvnrepository.com/artifact/org.springframework/spring-tx --&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.springframework&lt;/groupId&gt;
           &lt;artifactId&gt;spring-tx&lt;/artifactId&gt;
           &lt;version&gt;${org.springframework-version}&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java --&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;mysql&lt;/groupId&gt;
           &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;
           &lt;version&gt;5.1.6&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;!-- https://mvnrepository.com/artifact/org.hibernate/hibernate-core --&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
           &lt;artifactId&gt;hibernate-core&lt;/artifactId&gt;
           &lt;version&gt;4.1.4.Final&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;!-- https://mvnrepository.com/artifact/org.hibernate/hibernate-validator --&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
           &lt;artifactId&gt;hibernate-validator&lt;/artifactId&gt;
           &lt;version&gt;4.1.0.Final&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;!-- https://mvnrepository.com/artifact/org.hibernate.javax.persistence/hibernate-jpa-2.1-api --&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.hibernate.javax.persistence&lt;/groupId&gt;
           &lt;artifactId&gt;hibernate-jpa-2.1-api&lt;/artifactId&gt;
           &lt;version&gt;1.0.0.Final&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
           &lt;artifactId&gt;hibernate-entitymanager&lt;/artifactId&gt;
           &lt;version&gt;4.1.0.Final&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;!-- https://mvnrepository.com/artifact/org.hibernate/hibernate-c3p0 --&gt;
        &lt;!-- &gt;dependency&gt;
              &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
              &lt;artifactId&gt;hibernate-entitymanager&lt;/artifactId&gt;
              &lt;version&gt;4.1.0.Final&lt;/version&gt;
          &lt;/dependency--&gt;
        &lt;!-- https://mvnrepository.com/artifact/org.eclipse.persistence/javax.persistence --&gt;
        &lt;!-- https://mvnrepository.com/artifact/org.springframework/spring-jdbc --&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.springframework&lt;/groupId&gt;
           &lt;artifactId&gt;spring-jdbc&lt;/artifactId&gt;
           &lt;version&gt;${org.springframework-version}&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;!-- https://mvnrepository.com/artifact/org.springframework/spring-orm --&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.springframework&lt;/groupId&gt;
           &lt;artifactId&gt;spring-orm&lt;/artifactId&gt;
           &lt;version&gt;${org.springframework-version}&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;javax.transaction&lt;/groupId&gt;
           &lt;artifactId&gt;jta&lt;/artifactId&gt;
           &lt;version&gt;1.1&lt;/version&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;org.apache.commons&lt;/groupId&gt;
           &lt;artifactId&gt;commons-io&lt;/artifactId&gt;
           &lt;version&gt;1.3.2&lt;/version&gt;
        &lt;/dependency&gt;
     &lt;/dependencies&gt;
     &lt;build&gt;
        &lt;finalName&gt;TESTAPI&lt;/finalName&gt;
     &lt;/build&gt;
     &lt;!-- https://mvnrepository.com/artifact/com.amazonaws/aws-java-sdk --&gt;
  &lt;/project&gt;
  </code></pre>