This query is correct isn't it?
Object countObject = entityManager.createQuery("select count(*) from Project").getSingleResult();
Idea marks the "*" in red with error message "identifier expected".
Query query = sourceEntityManager.createQuery("from Project where _no != '1'");
Idea says "select expected".
Or am I falling for some incompatibilities between Hibernate's entity manager and
the EJB 3.0 specification?