Skip to content

Commit 5b82d67

Browse files
committed
由于不同数据对表名大小写敏感的情况不一样,所以这里不自动转换大小写,如果有需要,通过@table注解实现
1 parent 7477ae6 commit 5b82d67

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/github/abel533/mapperhelper/EntityHelper.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,8 @@ public static synchronized void initEntityNameMap(Class<?> entityClass) {
377377
}
378378
if (entityTable == null) {
379379
entityTable = new EntityTable();
380-
entityTable.name = camelhumpToUnderline(entityClass.getSimpleName()).toUpperCase();
380+
//对大小写敏感的情况,这里不自动转换大小写,如果有需要,通过@Table注解实现
381+
entityTable.name = camelhumpToUnderline(entityClass.getSimpleName());
381382
}
382383
//列
383384
List<Field> fieldList = getAllField(entityClass, null);

0 commit comments

Comments
 (0)