-->
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: Mon May 24, 2004 5:53 am 
Newbie

Joined: Mon Apr 05, 2004 10:40 am
Posts: 19
i wrote this code:
ConnectionFactory con = new ConnectionFactory().getInstance.getSession();



Collection lepb = new HashSet();
try
{
Solution sol = new Solution();
Transaction tx = sess.beginTransaction();
Probleme test = (Probleme) sess.load(Probleme.class, id_probleme);
Query query =
sess.createQuery(
" from com.cosoftware.Probleme probl where probl.id=2");
lepb = query.list();

....

sol.setProbleme(test);test.getSolutions().add(sol);
tx.commit();
sess.flush();


The problem is :
i obtain this execption:Found shared references to a collection.

Thanks for help me.


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.