java - CriteriaBuilder haven't got a method createCriteriaUpdate -
i need bulk update entities using jpa 2.1. here: http://wiki.eclipse.org/eclipselink/release/2.5/jpa21#update_example found example how it. if wrtite: criteriaupdate<orderrecordentity> orderrecordentity it's ok. when write: criteriabuilder.createcriteriaupdate(orderrecordentity.class); then see, criteriabuilder don't have method createcriteriaupdate. does know how resolve problem? you might have both jpa 2.0 , jpa 2.1 persistence jars on classpath. if 2.0 jar picked first on classpath, still see new jpa 2.1 criteriaupdate classes, have access 2.0 methods on classes exist in 2.0 persistence.jar.