|
Hi Denis,
I faced the same problem. Apparently it's implementation feature: transaction closing
invalidates result set. The workaround is to copy all the
elements from castor collection into your own collection explicitly while
transaction is open.
db.begin();
master =
(Master)db.load(...);
// copying code
here
// ...............
db.commit();
db.close()
Avoid transaction timeouts on large collections ))
regards
Dmitry Vereshchagin
|
- [castor-dev] Lazy loading with long transaction Denis Sukhoroslov
- Re: [castor-dev] Lazy loading with long transacti... Denis Sukhoroslov
- Re: [castor-dev] Lazy loading with long trans... Arijit Ghosh
- Re: [castor-dev] Lazy loading with long transacti... Dmitry Vereshchagin
- Re: [castor-dev] Lazy loading with long trans... Denis Sukhoroslov
