What are some of the real world example where JPA2 Criteria API is more preferable?

Viewed 12700

I have taken a look at JPA 2.0 Criteria API, but I found it to be too cumbersome unlike Hibernate Criteria. Is there any good reason to use JPA 2.0 Criteria API rather than using JPA-QL? Thanks for your advise.

4 Answers
Related