Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Tool/hbm2net
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8208/NHibernate/Tool/hbm2net
Modified Files:
ClassMapping.cs
Log Message:
Added another valuecheck.
Index: ClassMapping.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Tool/hbm2net/ClassMapping.cs,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** ClassMapping.cs 6 Apr 2004 10:51:41 -0000 1.10
--- ClassMapping.cs 8 Apr 2004 15:51:57 -0000 1.11
***************
*** 779,787 ****
// Collect the keys
foreignKeys = new SupportClass.HashSetSupport();
! foreignKeys.Add(collection["key"].Attributes["column"].Value);
for (System.Collections.IEnumerator iter = collection["key"].SelectNodes("urn:column", CodeGenerator.nsmgr).GetEnumerator(); iter.MoveNext(); )
{
! foreignKeys.Add(((Element) iter.Current).Attributes["name"].Value);
}
--- 779,789 ----
// Collect the keys
foreignKeys = new SupportClass.HashSetSupport();
! if (collection["key"].Attributes["column"] != null)
! foreignKeys.Add(collection["key"].Attributes["column"].Value);
for (System.Collections.IEnumerator iter = collection["key"].SelectNodes("urn:column", CodeGenerator.nsmgr).GetEnumerator(); iter.MoveNext(); )
{
! if (((Element) iter.Current).Attributes["name"] != null)
! foreignKeys.Add(((Element) iter.Current).Attributes["name"].Value);
}
|