Merge pull request #138 from fangkx1/orm

fix:orm对象嵌套当前对象,检查会循环递归堆栈溢出
This commit is contained in:
jaysunxiao
2024-12-04 20:14:45 +08:00
committed by GitHub
@@ -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);
}