summaryrefslogtreecommitdiffstats
path: root/src/com/iciql/ModelUtils.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/iciql/ModelUtils.java')
-rw-r--r--src/com/iciql/ModelUtils.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/com/iciql/ModelUtils.java b/src/com/iciql/ModelUtils.java
index 522da2a..678e7af 100644
--- a/src/com/iciql/ModelUtils.java
+++ b/src/com/iciql/ModelUtils.java
@@ -223,8 +223,15 @@ class ModelUtils {
// leading or trailing _
continue;
}
- className.append(Character.toUpperCase(chunk.charAt(0)));
- className.append(chunk.substring(1).toLowerCase());
+ String [] subchunks = StringUtils.arraySplit(chunk, ' ', false);
+ for (String subchunk : subchunks) {
+ if (subchunk.length() == 0) {
+ // leading or trailing space
+ continue;
+ }
+ className.append(Character.toUpperCase(subchunk.charAt(0)));
+ className.append(subchunk.substring(1).toLowerCase());
+ }
}
return className.toString();
}