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

2.3 jars

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