mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 09:08:24 +08:00
Merge pull request #193 from font-C/main
Fixed:修复表关联的从表配置schema,查询从表时schema丢失问题
This commit is contained in:
commit
d464a62992
@ -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 等基本数据类型
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user