From 3c530ca1685a667f87637457bcfa787c508bc1a7 Mon Sep 17 00:00:00 2001 From: lihengming <89921218@qq.com> Date: Fri, 30 Jun 2017 12:37:38 +0800 Subject: [PATCH] update > compatible with uppercase table name --- src/test/java/CodeGenerator.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/java/CodeGenerator.java b/src/test/java/CodeGenerator.java index 6d386c5..e9131d3 100644 --- a/src/test/java/CodeGenerator.java +++ b/src/test/java/CodeGenerator.java @@ -183,6 +183,7 @@ public class CodeGenerator { private static String tableNameConvertLowerCamel(String tableName) { StringBuilder result = new StringBuilder(); if (tableName != null && tableName.length() > 0) { + tableName = tableName.toLowerCase();//兼容使用大写的表名 boolean flag = false; for (int i = 0; i < tableName.length(); i++) { char ch = tableName.charAt(i);