Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Impl
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7678/src/NHibernate/Impl
Modified Files:
SessionImpl.cs
Log Message:
Fixes for NH-160:
* SessionImpl.DoLoad: added nonExists check
* OuterJoinLoader: a small fix to make it recognize one-to-one associations correctly
Index: SessionImpl.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Impl/SessionImpl.cs,v
retrieving revision 1.73
retrieving revision 1.74
diff -C2 -d -r1.73 -r1.74
*** SessionImpl.cs 15 Mar 2005 11:56:35 -0000 1.73
--- SessionImpl.cs 16 Mar 2005 15:10:47 -0000 1.74
***************
*** 2767,2770 ****
--- 2767,2773 ----
else
{
+ // check to see if we know already that it does not exist:
+ if ( nonExists.Contains(key) ) return null;
+
// LOOK IN CACHE
CacheEntry entry = persister.HasCache ? ( CacheEntry ) persister.Cache.Get( id, timestamp ) : null;
|