Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Persister
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9820/NHibernate/Persister
Modified Files:
NormalizedEntityPersister.cs
Log Message:
Fixed IndexOutOfRangeException with NormalizedEntityPersister for
versioned entities.
Index: NormalizedEntityPersister.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Persister/NormalizedEntityPersister.cs,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** NormalizedEntityPersister.cs 28 Jul 2004 03:56:49 -0000 1.21
--- NormalizedEntityPersister.cs 1 Aug 2004 15:00:18 -0000 1.22
***************
*** 1194,1201 ****
if ( IsVersioned )
{
! VersionType.NullSafeSet( statements[0], version, IdentifierColumnNames.Length + 1 , session );
}
! for (int i=tableNames.Length-1; i>=0; i-- )
{
// Do the key. The key is immutable so we can use the _current_ object state
--- 1194,1202 ----
if ( IsVersioned )
{
! // don't need to add the 1 because the parameter indexes begin at 0, unlike jdbc's which begin at 1
! VersionType.NullSafeSet( statements[0], version, IdentifierColumnNames.Length , session );
}
! for (int i=naturalOrderTableNames.Length-1; i>=0; i-- )
{
// Do the key. The key is immutable so we can use the _current_ object state
|