Beispiel #1
0
 public static String getControllerName(Template template, GeneratorBean bean) {
   Table table = (Table) bean;
   return I18nUtils.plurialize(FormatUtils.getJavaName(table.getAlias()));
 }
Beispiel #2
0
 //	#set
 // ($tableLabel=$i18nUtils.getI18nFromDBObject($formatUtils.getJavaNameVariable($table.alias),
 // false))
 //	#set ($controllerLabel=$i18nUtils.plurialize(${tableLabel}))
 private static String getLabel(GeneratorBean bean) {
   String tableLabel =
       I18nUtils.getI18nFromDBObject(FormatUtils.getJavaNameVariable(bean.getAlias()), false);
   return I18nUtils.plurialize(tableLabel);
 }