posted 13 years ago
Hello,
I'm having problems trying to update an object with a collection associated that was previously retrieved. If someone has faced the problem before it would be a great help.
The simplified code is the following:
Basicly the code that produces the exception is:
The implementation of saveMessage is:
I got the so called Illegal attempt to associate a collection with two open sessions in the getHibernateTemplate.saveOrUpdate(receiver); sentence. Any idea?
By the way I read around that it would be necessary to evict the object but I shouldn't evict the object out of the saveMessage for design reasons.