Need to get that column as a byte so that it is boxed into a Byte otherwise
we'll end up with an Integer which reflection doesn't convert to a Byte when coercing the method parameters.
This commit is contained in:
@@ -420,7 +420,7 @@ public abstract class FieldMarshaller
|
|||||||
public void getValue (ResultSet rs, Object po)
|
public void getValue (ResultSet rs, Object po)
|
||||||
throws SQLException, IllegalAccessException {
|
throws SQLException, IllegalAccessException {
|
||||||
try {
|
try {
|
||||||
_field.set(po, _factmeth.invoke(null, rs.getInt(getColumnName())));
|
_field.set(po, _factmeth.invoke(null, rs.getByte(getColumnName())));
|
||||||
} catch (InvocationTargetException ite) {
|
} catch (InvocationTargetException ite) {
|
||||||
throw new RuntimeException(ite);
|
throw new RuntimeException(ite);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user