|
@@ -316,6 +316,7 @@ public class TableInfoHelper {
|
|
} else {
|
|
} else {
|
|
throwExceptionId(clazz);
|
|
throwExceptionId(clazz);
|
|
}
|
|
}
|
|
|
|
+ tableInfo.setKeyType(field.getType());
|
|
}
|
|
}
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
@@ -342,7 +343,8 @@ public class TableInfoHelper {
|
|
.setIdType(dbConfig.getIdType())
|
|
.setIdType(dbConfig.getIdType())
|
|
.setKeyColumn(column)
|
|
.setKeyColumn(column)
|
|
.setKeyProperty(field.getName())
|
|
.setKeyProperty(field.getName())
|
|
- .setClazz(field.getDeclaringClass());
|
|
|
|
|
|
+ .setClazz(field.getDeclaringClass())
|
|
|
|
+ .setKeyType(field.getType());
|
|
return true;
|
|
return true;
|
|
} else {
|
|
} else {
|
|
throwExceptionId(clazz);
|
|
throwExceptionId(clazz);
|