diff --git a/mybatis-flex-core/src/main/java/com/mybatisflex/core/table/TableInfoFactory.java b/mybatis-flex-core/src/main/java/com/mybatisflex/core/table/TableInfoFactory.java index 61712630..220f4b1b 100644 --- a/mybatis-flex-core/src/main/java/com/mybatisflex/core/table/TableInfoFactory.java +++ b/mybatis-flex-core/src/main/java/com/mybatisflex/core/table/TableInfoFactory.java @@ -266,6 +266,16 @@ public class TableInfoFactory { 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); //满足以下 3 种情况,不支持该类型