From: Chris N. (JIRA) <no...@at...> - 2005-09-23 00:52:36
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HB-368?page=comments#action_19916 ] Chris Nokleberg commented on HB-368: ------------------------------------ I stopped writing web applications, so I didn't press the issue. But I would guess that there are still quite a few people who run into problems with uninitialized proxies. > Allow proxies to load in session other than one that created them > ----------------------------------------------------------------- > > Key: HB-368 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HB-368 > Project: Hibernate2 > Type: Improvement > Components: core > Versions: 2.1 > Reporter: Chris Nokleberg > Attachments: lazypatch.txt > > > For discussion, please see the following forum topic: > http://forum.hibernate.org/viewtopic.php?t=42 > In summary, there are scenarios in which it one may want proxies to be resolved in a different session. > The attached patch adds a ThreadLocal to SessionFactoryImpl which keeps track of the last opened session. If a the session that created a proxy is closed when it comes time to initialize the proxy, the last opened session is used instead, unless it has been closed as well. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |