使用hibernate保存一对多的数据,如果多方的collection属性和
另外一个对象共享了一个集合,那么就会抛出这个异常
Found shared references to a collection: com.morepower.domain.oa.TreeNode.permissions
另外一个对象共享了一个集合,那么就会抛出这个异常
Found shared references to a collection: com.morepower.domain.oa.TreeNode.permissions
本文探讨了使用Hibernate框架处理一对多关系时出现的共享集合异常问题。当多方的collection属性与另一对象共享同一集合时,会触发Found shared references to a collection错误。文章将深入分析该问题的原因及解决方案。
316

被折叠的 条评论
为什么被折叠?



