hello,
i've been getting the following error when initializing a lazy collection:
Code:
net.sf.hibernate.HibernateException: Found shared references to a collection
at net.sf.hibernate.impl.SessionImpl.updateReachableCollection(SessionImpl.java:2759)
at net.sf.hibernate.impl.FlushVisitor.processCollection(FlushVisitor.java:32)
at net.sf.hibernate.impl.AbstractVisitor.processValue(AbstractVisitor.java:69)
at net.sf.hibernate.impl.AbstractVisitor.processValues(AbstractVisitor.java:36)
at net.sf.hibernate.impl.SessionImpl.flushEntity(SessionImpl.java:2474)
at net.sf.hibernate.impl.SessionImpl.flushEntities(SessionImpl.java:2340)
at net.sf.hibernate.impl.SessionImpl.flushEverything(SessionImpl.java:2207)
at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2186)
at net.sf.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:61)
and it says in the hibernate docs:
Quote:
Collections obey the usual rules for value types: no shared references, created and deleted along with containing entity.
could someone clarify what this means and what i should do to stop this from happening?
thanks, cam