In MongoDB, an IndexOutOfBound is thrown:
{quote} java.lang.IndexOutOfBoundsException: Index: 0 {quote}
with
{code} String countQuery = "SELECT COUNT(t.id) FROM " + shortClassName + " t ";
TypedQuery<Long> query = __entityManager.createQuery(countQuery, Long.class);
Long count = query.getSingleResult(); ... {code}
|