|
|
|
@ -46,12 +46,11 @@ public class TableUtil { |
|
|
|
|
Column column = new Column(); |
|
|
|
|
if (field.isAnnotationPresent(org.panda.jdbc.annotation.Column.class)){ |
|
|
|
|
org.panda.jdbc.annotation.Column annotationColumn = field.getAnnotation(org.panda.jdbc.annotation.Column.class); |
|
|
|
|
|
|
|
|
|
int length = annotationColumn.length(); |
|
|
|
|
String defalutValue = annotationColumn.defaultValue(); |
|
|
|
|
String defaultValue = annotationColumn.defaultValue(); |
|
|
|
|
boolean isNull = annotationColumn.isNull(); |
|
|
|
|
column.setColumnSize(length); |
|
|
|
|
column.setColumnDef(defalutValue); |
|
|
|
|
column.setColumnDef(defaultValue); |
|
|
|
|
column.setColumnName(BeanSqlUtil.caseToHump(field.getName())); |
|
|
|
|
column.setNull(isNull); |
|
|
|
|
} |
|
|
|
|