Commit f4cd3842 authored by Quxl's avatar Quxl

x

parent 532b380d
...@@ -45,6 +45,7 @@ public class Desc { ...@@ -45,6 +45,7 @@ public class Desc {
if(!Modifier.isStatic(mod) && !Modifier.isFinal(mod)) { if(!Modifier.isStatic(mod) && !Modifier.isFinal(mod)) {
String fieldName = field.getName(); String fieldName = field.getName();
String columnName = null; String columnName = null;
if(!field.isAnnotationPresent(Transient.class)) {
if(field.isAnnotationPresent(Column.class)) { if(field.isAnnotationPresent(Column.class)) {
Column column = field.getAnnotation(Column.class); Column column = field.getAnnotation(Column.class);
String columnAnnoName = column.name(); String columnAnnoName = column.name();
...@@ -64,6 +65,7 @@ public class Desc { ...@@ -64,6 +65,7 @@ public class Desc {
all_column_names.add(columnName); all_column_names.add(columnName);
} }
} }
}
this.name = tableName; this.name = tableName;
this.fieldNames = all_field_names.toArray(new String[all_field_names.size()]); this.fieldNames = all_field_names.toArray(new String[all_field_names.size()]);
this.columnNames = all_column_names.toArray(new String[all_column_names.size()]); this.columnNames = all_column_names.toArray(new String[all_column_names.size()]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment