@Override public void apply(BusinessModel model) { List<Table> tables = model.getBusinessPackage().getEntities(); for (Table table : tables) { if (table.getPrimaryKeyColumns().length == 0) { if (TableUtils.isView(table)) model.getBusinessPackage().getViews().remove(table); else model.getBusinessPackage().getTables().remove(table); } } model.getBusinessPackage().resetEntities(); }
public static String getControllerName(Template template, GeneratorBean bean) { Table table = (Table) bean; return I18nUtils.plurialize(FormatUtils.getJavaName(table.getAlias())); }