Details
Description
Below is a snippet of a test case... the max should be null, but is zero.
Object count = em.createQuery("Select count(p.pk) from Entity1 p where 1=1").getSingleResult();
Object max = em.createQuery("Select max(p.pk) from Entity1 p where 1=1").getSingleResult();
System.out.println("count:"count " max:"+max);
> count:0 max:0