fix:orm对象嵌套当前对象,检查会循环递归堆栈溢出

This commit is contained in:
fkx
2024-12-04 19:03:56 +08:00
parent da700c5e24
commit feda834f5c
@@ -617,6 +617,8 @@ public class OrmManager implements IOrmManager {
} else if (clazz.equals(List.class) || clazz.equals(Set.class) || clazz.equals(Map.class)) {
// ORM不支持集合嵌套数组类型
throw new RunException("orm do not support the combination of arrays and collections with the class:[{}] type:[{}]", currentEntityClass.getSimpleName(), clazz.getSimpleName());
} else if (clazz.equals(currentEntityClass)) {
return false;
} else {
return hasUnsafeCollection(clazz);
}