Closed GoogleCodeExporter closed 9 years ago
public static String makeAllWordFirstLetterUpperCase(String sqlName) {
String[] strs = sqlName.toLowerCase().split("_");
String result = "";
String preStr = "";
for(int i = 0; i < strs.length; i++) {
if(preStr.length() == 1) {
result += strs[i];
}else {
result += capitalize(strs[i]);
}
preStr = strs[i];
}
return result;
}
好像问题就在这里
if(preStr.length() == 1) {
result += strs[i];
这里为什么要加上一个判断呢?
Original comment by neolf....@gmail.com
on 23 Jun 2010 at 6:54
参考这里: http://code.google.com/p/rapid-framework/wiki/rapid_sqlgenerator
可以使用JPA的annotation,现只支持@Table,@ID,@Column,@Transient,示例如
下:
@Column(name="ann_age")
Original comment by bad...@gmail.com
on 23 Jun 2010 at 6:58
对于 P_MULTIPLY 列应该转化为 pMultiply 而非 pmultiply
我现在将单字母转为pmultiply认为是正常的。
Original comment by bad...@gmail.com
on 23 Jun 2010 at 7:00
Original issue reported on code.google.com by
neolf....@gmail.com
on 23 Jun 2010 at 6:41