public static String getExecAfterTableCreated(Class<?> entityType) { Table table = entityType.getAnnotation(Table.class); if (table != null) { return table.execAfterTableCreated(); } return null; }
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(); }