title: entity manager doesn't have method getCriteriaBuilder()
body: <p>I am introducing JPA2.0 in my application working on Oracle9i database and I added the libraries EclipseLink(JPA2.0) and created the entity classes but when I use </p>
  
  <pre><code>javax.persistence.criteria.CriteriaQuery cq = em.getCriteriaBuilder().createQuery();
  </code></pre>
  
  <p>I get the following error</p>
  
  <p>cannot find symbol
  symbol  : method getCriteriaBuilder()
  location: interface javax.persistence.EntityManager</p>
  
  <p>my web.xml is version 2.4 and here's my persistence.xml</p>
  
  <pre><code>&lt;persistence version="2.0" xmlns="http://java.sun.com/xml/ns/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"&gt;
     &lt;persistence-unit name="MiraclinPU" transaction-type="JTA"&gt;
      &lt;jta-data-source&gt;jdbc/Miraclin&lt;/jta-data-source&gt;
      &lt;exclude-unlisted-classes&gt;false&lt;/exclude-unlisted-classes&gt;
      &lt;properties/&gt;
     &lt;/persistence-unit&gt;
  &lt;/persistence&gt;
  </code></pre>
  
  <p>It looks like the app is using JPA1.0 as I read on the forums...Can anyone help?</p>