Skip to content

Commit 5815628

Browse files
Add Short to the SQLMapper
1 parent 56bb5b2 commit 5815628

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/org/javawebstack/orm/SQLMapper.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ private static Object getValue(ResultSet rs, Class<?> sqlType, String tableName,
9898
}
9999
if (sqlType.equals(String.class))
100100
return rs.getString(columnName);
101+
if (sqlType.equals(Short.class))
102+
return rs.getShort(columnName);
101103
if (sqlType.equals(Integer.class))
102104
return rs.getInt(columnName);
103105
if (sqlType.equals(Boolean.class))

0 commit comments

Comments
 (0)