title: How to specify JPA 2.1 in persistence.xml?
body: <p>A quick search on the Net reveals three or four variants how folks have been specifying <code>xmlns</code> and <code>xsi:schemaLocation</code> in <code>persistence.xml</code>.</p>
  
  <p>What would be the 'correct' manner to specify JPA version 2.1?</p>
  
  <p>I'm using</p>
  
  <pre><code>&lt;persistence version="2.1"
               xmlns="http://xmlns.jcp.org/xml/ns/persistence"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence
               http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd"&gt;
  </code></pre>