Ejemplo n.º 1
0
 private String tableName(Class<?> clazz) {
   String tableName = clazz.getSimpleName();
   if (tableNameStyle == TableNameStyle.UP) {
     tableName = tableName.toUpperCase();
   } else if (tableNameStyle == TableNameStyle.LOWER) {
     tableName = tableName.toLowerCase();
   } else {
     tableName = StringKit.firstCharToLowerCase(tableName);
   }
   return tableName;
 }
Ejemplo n.º 2
0
 public Controller keepModelWithGroup(String group, Class modelClass) {
   String modelName = StringKit.firstCharToLowerCase(modelClass.getSimpleName());
   keepModelWithGroup(group, modelClass, modelName);
   return this;
 }