聂秋荣 пре 6 година
родитељ
комит
3fff024c99

+ 1 - 0
mybatis-plus-core/src/main/java/com/baomidou/mybatisplus/core/toolkit/TableInfoHelper.java

@@ -356,6 +356,7 @@ public class TableInfoHelper {
                 tableInfo.setIdType(dbConfig.getIdType());
                 tableInfo.setIdType(dbConfig.getIdType());
                 tableInfo.setKeyColumn(column);
                 tableInfo.setKeyColumn(column);
                 tableInfo.setKeyProperty(field.getName());
                 tableInfo.setKeyProperty(field.getName());
+                tableInfo.setParentClass(field.getDeclaringClass());
                 return true;
                 return true;
             } else {
             } else {
                 throwExceptionId(clazz);
                 throwExceptionId(clazz);