My Setup is:
COUNT was already supposed to return Long in the specs for a while now but there was a bug in the previous EJB3 release to return Integer. It got fixed in the last release so returning Long is the way it is supposed to be.
Thanks for the heads up!
How am I supposed to get the count then?
I cannot do something like
long myCount = (long)q.getSingleResult();
Nevermind I got it, just needed to capitalize it.