JPA equivalents to Hibernate Restrictions, Expression, Examples

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.

[798 byte] By [codebooka] at [2007-11-26 13:17:52]
# 1
Hi.You can take a look at this: http://sourceforge.net/projects/jpacriteria/.This API doesn't support some advanced features like joins and groups yet. But it is still being under development and these features should appear soon.
maxim_butova at 2007-7-7 17:42:28 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...