This commit is contained in:
开源海哥 2023-10-25 19:32:54 +08:00
commit a7a41c3fc6

View File

@ -88,7 +88,7 @@ abstract class AbstractRelation<SelfEntity> {
//以使用者注解配置为主 //以使用者注解配置为主
this.targetTableInfo = StringUtil.isBlank(targetTable) ? TableInfoFactory.ofEntityClass(relationFieldWrapper.getMappingType()) : TableInfoFactory.ofTableName(targetTable); this.targetTableInfo = StringUtil.isBlank(targetTable) ? TableInfoFactory.ofEntityClass(relationFieldWrapper.getMappingType()) : TableInfoFactory.ofTableName(targetTable);
this.targetSchema = targetSchema; this.targetSchema = targetTableInfo != null ? targetTableInfo.getSchema() : targetSchema;
this.targetTable = targetTableInfo != null ? targetTableInfo.getTableName() : targetTable; this.targetTable = targetTableInfo != null ? targetTableInfo.getTableName() : targetTable;
//当指定了 valueField 的时候一般是 String Integer 等基本数据类型 //当指定了 valueField 的时候一般是 String Integer 等基本数据类型