From: Jonas V. P. <jvp...@ti...> - 2002-12-03 08:21:08
|
The implementation of the write() method in cirrus.hibernate.collections.= PersistentCollection states: protected final void write() { initialize(true); if ( session!=3Dnull && session.isOpen() ) session.dirty(this); } This means the session needs to be open. Also, the Docs mentions that lazy collections need to have an open sessio= n. Could we safely modify the code to reopen the session when needed? protected final void write() { initialize(true); if ( session !=3D null ) { if ( session.isOpen() ) { session.dirty(this); } else { // Re-open session session.reopen(); // ommitted try-catch session.dirty(this); } } } *************************************************************************= ****** Hou uw internetverbruik beter onder controle ... surf met Tiscali Complet= e ... http://tiscali.complete.be |