luckydexte
Programmer
Hello all,
Does anyone know how to convert type of Long to an Integer?
Long count = function(); // Returns a long
Integer factor = (Integer) count;
This obviously does not work but I am not sure how to get around this. Hibernate only returns a type of Long when using an aggregate count function but I have to an Integer.
Any ideas?
Thanks in advance.
Brandon
Does anyone know how to convert type of Long to an Integer?
Long count = function(); // Returns a long
Integer factor = (Integer) count;
This obviously does not work but I am not sure how to get around this. Hibernate only returns a type of Long when using an aggregate count function but I have to an Integer.
Any ideas?
Thanks in advance.
Brandon