I have a table with a field of type SMALLINT that may contain NULL. For I need to know
if the field is NULL, I have a field
of class java.lang.Short but not of type short to store that information. GenIC 2.2.6
does a
..(java.lang.Short)rs.getObject("MyColumn"); out of this. At run time, this throws a
cast exception, because (why ever, I
don't know) the resultset delivers an instance of java.lang.Integer, what cannot be
casted to java.lang.Short.
There is no error in my bean. SMALLINT has to be converted to java.lang.Short, this is
quite clear, and I used
java.lang.Short at every place.
What can I do?