orders; @ManyToOne(fetch = FetchType.EAGER, optional = false)我的控制器references to a collection: com.myproject.eshop_orders.api.model.Orders.productEntities; nested exception is org.hibernate.HibernateExceptionreferences to a collection: com.my
我意识到这个问题在StackOverflow上已经被问过很多次了,我已经阅读了从13年前到3个月前提出的许多问题,而这些问题都没有回答我的问题。那么,让我从我们的堆栈跟踪开始,它很长:
Message: org.hibernate.HibernateException: Found shared references to a collection,但这正是我们在近期的sprint中想要做的。我们正在使用Eclipse,当我们在调试模式中右键单击一个变量时,我们可以看到实例计数,我们可以
pOrder: "post", posts: status, children: lookupPerson().children)完全的例外是:
org.hibernate.HibernateException: Found shared references to a collection: com.fyp.timeline.PostOrder.children