JPA 相当于 Hibernate org.hibernate.criterion.Example?

JPA equivalents to Hibernate org.hibernate.criterion.Example?

我有一个使用 Hibernate 的应用程序。我们正在转向 JPA 2.1 标准。 "org.hibernate.criterion.Example" 及其 (excludeProperty) 功能有很多用法。 JPA 2.1 中是否有任何等同于 "Hibernate Example" 的东西?

谢谢。

JPA 还没有提供这个,但是有一些开源框架允许您通过示例查询: