What is the correct way to write this JPA request? I just guess when I cannot handle this or find it in my JPA book.
Query query=em.createQuery("select m from Meeting m where count(m.attendees) = 0"); return query.getResultList();
I am currently trying to use Hibernate and I am getting mysql error!
ERROR org.hibernate.util.JDBCExceptionReporter - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')=0' at line 1
java orm hibernate jpa jpql
corydoras
source share