예제 #1
0
 public static String getExecAfterTableCreated(Class<?> entityType) {
   Table table = entityType.getAnnotation(Table.class);
   if (table != null) {
     return table.execAfterTableCreated();
   }
   return null;
 }
예제 #2
0
 public static String getTableName(Class<?> entityType) {
   Table table = entityType.getAnnotation(Table.class);
   if (table == null || TextUtils.isEmpty(table.name())) {
     return entityType.getName().replace('.', '_');
   }
   return table.name();
 }