In Hibernate you can use the Session object to create Criteria objects which then can have Restriction, Expression, or Example objects applied as filters to the Criteria query. Is there anything like that in the JPA standard?
What would be a JPA equivalent to...
Criteria crit = mySession.createCriteria();
Example examplePerson = Example.create(myPerson);
personExample = personExample.ignoreCase().excludeProperty("lastName");
crit = crit.add(personExample);
List resultsLikeMyPerson = crit.list();
Any help is greatly appreciated. We are moving from using Hibernate-specific features to using a pure JPA solution. Getting rid of a few uses of Example, Restrictrion, etc will take care of the worst part of our conversion.