提交 3c9f55ea 编写于 作者: M MaxKey

2.3 jars

上级 77e39630
...@@ -158,14 +158,18 @@ public class MybatisAutoConfiguration implements InitializingBean { ...@@ -158,14 +158,18 @@ public class MybatisAutoConfiguration implements InitializingBean {
} }
} }
//default is lowercase if (StringUtils.hasLength(this.properties.getTableColumnCase())) {
if(this.properties.getTableColumnCase().equalsIgnoreCase("uppercase")) { //default is lowercase
MapperMetadata.TABLE_COLUMN_CASE = CASE_TYPE.UPPERCASE; if(this.properties.getTableColumnCase().equalsIgnoreCase("uppercase")) {
}else if(this.properties.getTableColumnCase().equalsIgnoreCase("lowercase")) { MapperMetadata.TABLE_COLUMN_CASE = CASE_TYPE.UPPERCASE;
MapperMetadata.TABLE_COLUMN_CASE = CASE_TYPE.LOWERCASE; }else if(this.properties.getTableColumnCase().equalsIgnoreCase("lowercase")) {
}else if(this.properties.getTableColumnCase().equalsIgnoreCase("normal")) { MapperMetadata.TABLE_COLUMN_CASE = CASE_TYPE.LOWERCASE;
MapperMetadata.TABLE_COLUMN_CASE = CASE_TYPE.NORMAL; }else if(this.properties.getTableColumnCase().equalsIgnoreCase("normal")) {
}else { MapperMetadata.TABLE_COLUMN_CASE = CASE_TYPE.NORMAL;
}else {
MapperMetadata.TABLE_COLUMN_CASE = CASE_TYPE.LOWERCASE;
}
}else {
MapperMetadata.TABLE_COLUMN_CASE = CASE_TYPE.LOWERCASE; MapperMetadata.TABLE_COLUMN_CASE = CASE_TYPE.LOWERCASE;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册