simple querying in jpql, native query and criteria