mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-08 01:28:24 +08:00
optimize:TableFactory Column解析忽略@Relation相关字段
This commit is contained in:
parent
89d6b82307
commit
8464709afc
@ -266,6 +266,16 @@ public class TableInfoFactory {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//忽略 Relation 字段
|
||||||
|
//fixed https://gitee.com/mybatis-flex/mybatis-flex/issues/I8SKOP
|
||||||
|
if (field.isAnnotationPresent(RelationOneToOne.class)
|
||||||
|
|| field.isAnnotationPresent(RelationOneToMany.class)
|
||||||
|
|| field.isAnnotationPresent(RelationManyToOne.class)
|
||||||
|
|| field.isAnnotationPresent(RelationManyToMany.class))
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
Column columnAnnotation = field.getAnnotation(Column.class);
|
Column columnAnnotation = field.getAnnotation(Column.class);
|
||||||
|
|
||||||
//满足以下 3 种情况,不支持该类型
|
//满足以下 3 种情况,不支持该类型
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user