Hello,
I'm building application that uses JPA, and I want to use Criteria API as described http://openjpa.apache.org/builds/latest/docs/manual/jpa_overview_criteria.html. More precisely this part:
EntityManager em = ... ;
CriteriaBuilder queryBuilder = em.getCriteriaBuilder();
CriteriaQuery qdef = queryBuilder.createCriteriaQuery();
The problem is that there is no getCriteriaBuilder()
method in my EntityManager
and also CriteriaBuilder
and CriteriaQuery
cannot be found in the persistance-api-1.0.jar
What am I missing? As I'm using a wrong jar? Mine is from http://repo2.maven.org/maven2/javax/persistence/persistence-api/1.0/
Regrads, Oleksandr