When run against and Oracle database, what is the runtime type of the object that the following Spring Hibernate Template (Spring 2.5 and Hibernate 3.3.2GA) code returns whe
How about
long value = ((Number)query.uniqueResult()).longValue(); return Long.valueOf(value);
This would work for all subclasses of Number like Long, Double, Biginteger or BigDecimal.