-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Exception: Found shared references to a collection
PostPosted: Tue Aug 03, 2004 5:49 pm 
Newbie

Joined: Sun Nov 09, 2003 12:34 pm
Posts: 15
Hi,

We have bidirectional relationship so we have created one-to-many in the parent object, and many-to-one in child object?

We get the following error:

Caused by: net.sf.hibernate.HibernateException: Found shared references to a collection

Parent Mapping:
<set inverse="true" name="hierarchies" lazy="true" table="INT_MESSAGE_DEFINITION_HIER" cascade="all" sort="unsorted" batch-size="1" outer-join="auto">
<key column="PARENT_MD_ID" />
<one-to-many class="admin.messagedefinition.bo.impl.HierarchyDefinitionImpl" />
</set>

ChildMapping
<many-to-one name="parentMessageDefinition" class="admin.messagedefinition.bo.impl.MessageDefinitionImpl" column="PARENT_MD_ID" not-null="true" cascade="all" unique="false" outer-join="auto" update="true" insert="true" />

Could somebody suggest what could be wrong here?

thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.