mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-13 21:01:01 +08:00
Add jdbc types
This commit is contained in:
parent
59544c7438
commit
fd255376ae
@ -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)) {
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user