skywards
skywards

Reputation: 89

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

I have an application that uses Hibernate. We are moving to JPA 2.1 standard. There are a lot of usage of "org.hibernate.criterion.Example" with its (excludeProperty) feature. Is there any equivalent to "Hibernate Example" in JPA 2.1?

Thanks.

Upvotes: 5

Views: 1229

Answers (1)

Vlad Mihalcea
Vlad Mihalcea

Reputation: 153780

JPA doesn't offer this yet, but you can use Spring Data JPA Query by Example.

Upvotes: 2

Related Questions