title: Migration from hibernate-jpa-2.0-api to hibernate-jpa-2.1-api
body: <p>Currently I am using Spiring data jpa with 2.0 JPA version. And I am looking into migrating from <strong>hibernate-jpa-2.0-api</strong> to <strong>hibernate-jpa-2.1-api</strong>, as version <strong>2.1</strong> contains some very useful features. </p>
  
  <p>My question is following: Are there any risks doing this migration? For e.g: maybe JPA 2.1 version deprecates some method from 2.0 version. </p>
  
  <p>Please, tell if there is something, that I should pay attencion.</p>
  
  <p>Current Hibernate dependencies: </p>
  
  <pre><code>&lt;!-- ***************************************************** --&gt;
              &lt;!-- Hibernate dependencies --&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
                  &lt;artifactId&gt;hibernate-validator&lt;/artifactId&gt;
                  &lt;version&gt;5.0.1.Final&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;net.sf.ehcache&lt;/groupId&gt;
                  &lt;artifactId&gt;ehcache&lt;/artifactId&gt;
                  &lt;version&gt;2.7.0&lt;/version&gt;
              &lt;/dependency&gt;
  
              &lt;dependency&gt;
                  &lt;groupId&gt;org.hibernate.javax.persistence&lt;/groupId&gt;
                  &lt;artifactId&gt;hibernate-jpa-2.0-api&lt;/artifactId&gt;
                  &lt;version&gt;1.0.1.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.2.7.Final&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
                  &lt;artifactId&gt;hibernate-ehcache&lt;/artifactId&gt;
                  &lt;version&gt;4.2.7.Final&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
                  &lt;artifactId&gt;hibernate-validator-annotation-processor&lt;/artifactId&gt;
                  &lt;version&gt;5.0.1.Final&lt;/version&gt;
              &lt;/dependency&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
                  &lt;artifactId&gt;hibernate-core&lt;/artifactId&gt;
                  &lt;version&gt;4.2.7.Final&lt;/version&gt;
              &lt;/dependency&gt;
  </code></pre>