Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
1.0.1
Has the issue at the following link been ported to NH? I ask because it states in the issue that the fix was only going to be applied to 3.x and this is biting me in the tush.
http://opensource.atlassian.com/project ... ge=history
I have an object with an uninitialized proxy that I want to do the following to:
Code:
ISession s1 = ...
ISession s2 = ...
object o1 = s1.Load(1);
s1.Evict(o1);
s2.Lock(o1);
I get the dreaded 'attempt to associate proxy with two open sessions' exception as detailed in the included link. I've looked at the code and it appears that the proxies are reused between object instances so I see maybe why the __interceptor field on the proxy would not have the Session cleared on it on a detach. However, this must have been fixed in this issue so something must have changed there.
I looked at the release notes for 1.0.2 and 1.0.3 and didn't see anything related to this - although I did see an issue regarding attachment of an entity to a session causing it to be unnecessarily initialized (which is another issue that is probably going to make me upgrade to 1.0.3 - I know, I know...). If this is fixed in a later 1.0.X or 1.2 release then I will just have to upgrade but I've searched JIRA and haven't found confirmation of this.
Thx for any help or pointers in the right direction...
benster