| 
					
						 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 
					
  
						
					 |