JPA Criteria Tutorial

John Manak picture John Manak · Oct 22, 2010 · Viewed 81.4k times · Source

I've been trying to find a JPA Criteria API tutorial but haven't been much successful. Do you know about any for beginners? I'd like to start using it in an Java5/Maven app to build complex search queries.

Answer

Pascal Thivent picture Pascal Thivent · Oct 22, 2010

The Dynamic, typesafe queries in JPA 2.0 article is a very good one on this topic, actually the best one I've found so far online, even better than the Chapter 23 Using the Criteria API to Create Queries from the Java EE 6 tutorials (that contains some mistakes).