This content has been marked as final. Show 3 replies
I've also tried select count(*), but that doesn't work either
You would need to use createNativeQuery and not createQuery. createQuery is used for EJQL.
You have to query entities (ie objects) not table. EJB3 is a ORM solution.