Example #1
0
 /**
  * get the class name
  *
  * @param tableName
  * @return the class name
  */
 public String getClassName(String tableName) {
   return new StringBuilder()
       .append(getClassNamePrefix())
       .append(
           StringUtil.firstCharToUpperCase(
               CamelCaseFairy.toCamelCase(tableName, getCamelCaseFairy())))
       .append(getClassNameSuffix())
       .toString();
 }
Example #2
0
 /**
  * get the member variable name
  *
  * @param field the field for which to get the member name
  * @return the member name
  */
 public String getMemberName(Field field) {
   return CamelCaseFairy.toCamelCase(field.getName(), getCamelCaseFairy());
 }