JPA EntityManager.getSingleResult() 为 COUNT 查询返回什么?
COUNT 查询的返回值是多少?EntityManager.getSingleResult()
所以。。foo的确切运行时类型是什么?
Object foo = em.createQuery("SELECT COUNT(t) FROM com.company.Thing t WHERE prop = :param")
.setParameter("param", value).getSingleResult();