Add jdbc types

This commit is contained in:
Timo Westkämper 2014-06-15 18:47:43 +03:00
parent 59544c7438
commit fd255376ae
2 changed files with 2 additions and 2 deletions

View File

@ -269,7 +269,7 @@ public class MetaDataExporter {
columnDigits != null ? columnDigits.intValue() : 0,
tableName, columnName);
if (clazz == null) {
throw new IllegalStateException("Found no mapping for " + columnType + " (" + tableName + "." + columnName + ")");
throw new IllegalStateException("Found no mapping for " + columnType + " (" + tableName + "." + columnName + " " + typeName + ")");
}
TypeCategory fieldType = TypeCategory.get(clazz.getName());
if (Number.class.isAssignableFrom(clazz)) {

View File

@ -38,6 +38,7 @@ public final class JDBCTypeMapping {
static{
registerDefault(-101, Object.class);
registerDefault(-102, java.sql.Timestamp.class); // Oracle: TIMESTAMP(6) WITH LOCAL TIME ZONE
// BOOLEAN
registerDefault(Types.BIT, Boolean.class);
@ -88,7 +89,6 @@ public final class JDBCTypeMapping {
registerDefault(Types.REF, Object.class);
registerDefault(Types.ROWID, Object.class);
registerDefault(Types.STRUCT, Object.class);
}
private static void registerDefault(int sqlType, Class<?> javaType) {