Relatively interesting your proposal, and very interesting results :::
----------
final Object count = session
.createQuery("select count(*) from ModuleJar").uniqueResult();
System.err.println("result:::" + count.getClass());
-----------
and guess what? Integer results ......reaaaaaally funny.
Any way it's obviously something i've worked around with some code like this:::
final Object count = session
.createQuery("select count(*) from ModuleJar").uniqueResult();
int num = Integer.parseInt(""+count)
Not elegant, rather stupid, but that's it. In former version it worked as expected and as I upgraded this silly matter arose.
|