Casting sequence value to Integer problem on IAS 9i 2
I'm casting the next value of a sequence (9i2 database) to an Integer object ->
Integer newAddressId = (Integer)attractAddrSeq.getData()
It works just fine on JDeveloper 3.2.2 but when I deploy the project on the IAS 9i2 I get a ClassCastException:java.lang.Long (both Jdeveloper and IAS refer to the exact same DB)
Is there a way to fix this without switching from Integer to Long? The same code works fine for Oracle 9i and 8i. It is a very large project with many occurences of this problem and I'd rather keep the Integer data type if possible, so are there any suggestions?
Thanks in advance.
John Baseas