What steps will reproduce the problem?
1. Deploy GenericDaoJpa on OpenJPA 1.0.2
2. Execute count()
I've reported it to the OpenJPA team here:
https://issues.apache.org/jira/browse/OPENJPA-566
A nice workaround is using the following query:
Query query = em.createQuery("SELECT count(i) FROM " + entityName + " i");
This makes it work on Hibernate and OpenJPA.
Original issue reported on code.google.com by mathias....@gmail.com on 9 Apr 2008 at 9:04
Original issue reported on code.google.com by
mathias....@gmail.com
on 9 Apr 2008 at 9:04