The Query API in JPA (EJB 3.0)