|
@@ -95,11 +95,12 @@ public class TableFieldInfo {
|
|
|
this.property = field.getName();
|
|
|
this.propertyType = field.getType().getName();
|
|
|
/*
|
|
|
- * 1、开启字段下划线申明<br>
|
|
|
+ * 1、注解 value 不存在,开启字段下划线申明<br>
|
|
|
* 2、没有开启下划线申明,但是column与property不等的情况<br>
|
|
|
* 设置 related 为 true
|
|
|
*/
|
|
|
- if (globalConfig.isDbColumnUnderline()) {
|
|
|
+ if (StringUtils.isEmpty(tableField.value())
|
|
|
+ && globalConfig.isDbColumnUnderline()) {
|
|
|
/* 开启字段下划线申明 */
|
|
|
this.related = true;
|
|
|
this.setColumn(globalConfig, StringUtils.camelToUnderline(column));
|