code: public static String nameClass(String tableName) 
      {
  		StringBuffer sb = new StringBuffer();
  		char[] chars = new char[tableName.length()];
  		chars = tableName.toCharArray();
  		char c;
  		boolean nextup = false;
  		for (int i = 0; i < chars.length; i++) {
  			if (i==0) c = Character.toUpperCase(chars[i]);
  			else if (chars[i]=='_') {
  				 nextup = true;
  				 continue;
  			}
  			else if (nextup) {
  				nextup = false;
  				c = Character.toUpperCase(chars[i]);
  			} 
  			else c = Character.toLowerCase(chars[i]);
  			sb.append(c);
  		}
  		return sb.toString();
  	}
docs: /* (non-Javadoc)
  @see org.apache.ojb.tools.mapping.reversedb.Namer#nameClass(java.lang.String, java.lang.String)