File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
src/net/tsz/afinal/db/sqlite Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -318,6 +318,13 @@ public static String getCreatTableSQL(Class<?> clazz){
318
318
Collection <Property > propertys = table .propertyMap .values ();
319
319
for (Property property : propertys ){
320
320
strSQL .append ("\" " ).append (property .getColumn ());
321
+ if (property .getDataType () == int .class || property .getDataType () == Integer .class
322
+ || property .getDataType () == long .class || property .getDataType () == Long .class ){
323
+ strSQL .append (" INTEGER" );
324
+ }else if (property .getDataType () == float .class || property .getDataType () == Float .class
325
+ || property .getDataType () == double .class || property .getDataType () == Double .class ){
326
+ strSQL .append (" REAL" );
327
+ }
321
328
strSQL .append ("\" ," );
322
329
}
323
330
You can’t perform that action at this time.
0 commit comments