This content has been marked as final. Show 1 reply
Query by example is not included in the JPA standard, but it is possible to do with EclipseLink.
for how to use query by example with native EclipseLink queries. To execute a native query through JPA, you will need to call createQuery(DatabaseQuery query) on the org.eclipse.persistence.jpa;JpaEntityManager obtained from the javax.persistence.EntityManager instance by calling getDelegate() or unwrap.