From: Paul H. <pha...@us...> - 2005-03-14 16:53:27
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Impl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5013/nhibernate/src/NHibernate/Impl Modified Files: FlushVisitor.cs WrapVisitor.cs Log Message: Update visitors to 2.1 standards Index: FlushVisitor.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Impl/FlushVisitor.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** FlushVisitor.cs 7 Feb 2005 01:34:40 -0000 1.2 --- FlushVisitor.cs 14 Mar 2005 16:53:17 -0000 1.3 *************** *** 1,3 **** --- 1,4 ---- using System; + using log4net; using NHibernate.Collection; using NHibernate.Type; *************** *** 8,11 **** --- 9,13 ---- { private object _owner; + private static readonly ILog log = LogManager.GetLogger( typeof( AbstractVisitor ) ); public FlushVisitor(SessionImpl session, object owner) *************** *** 17,20 **** --- 19,27 ---- protected override object ProcessCollection(object collection, PersistentCollectionType type) { + if( log.IsDebugEnabled ) + { + log.Debug( string.Format( "Processing collection for role {0}", type.Role ) ); + } + if( collection != null ) { Index: WrapVisitor.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Impl/WrapVisitor.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** WrapVisitor.cs 1 Mar 2005 16:24:47 -0000 1.4 --- WrapVisitor.cs 14 Mar 2005 16:53:17 -0000 1.5 *************** *** 28,34 **** protected override object ProcessCollection(object collection, PersistentCollectionType collectionType) { ! PersistentCollection coll = collection as PersistentCollection; ! if( coll!=null ) { if( coll.SetCurrentSession( Session ) ) { --- 28,34 ---- protected override object ProcessCollection(object collection, PersistentCollectionType collectionType) { ! if( collection != null && (collection is PersistentCollection) ) { + PersistentCollection coll = collection as PersistentCollection; if( coll.SetCurrentSession( Session ) ) { *************** *** 36,40 **** } return null; - } else --- 36,39 ---- |