[Nugsoft-commits] infozerk_templates NHibernate.hbm.cst,1.1,1.2
Brought to you by:
javery,
jimholmesoh
|
From: Jim H. <jim...@us...> - 2005-12-04 03:27:45
|
Update of /cvsroot/nugsoft/infozerk_templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31715 Modified Files: NHibernate.hbm.cst Log Message: Cascades should be "none" for many-to-many relationships. See 11.11. "Transitive persistence" of Hibernate dox. Index: NHibernate.hbm.cst =================================================================== RCS file: /cvsroot/nugsoft/infozerk_templates/NHibernate.hbm.cst,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** NHibernate.hbm.cst 12 Nov 2005 02:06:21 -0000 1.1 --- NHibernate.hbm.cst 4 Dec 2005 03:27:37 -0000 1.2 *************** *** 51,55 **** <% foreach(TableKeySchema primaryKey in SourceTable.PrimaryKeys) { %> <% if (IsManyToManyTable(primaryKey.ForeignKeyTable)) { %> ! <bag<%= CollectionManyToManyNameAtt(primaryKey)%><%= CollectionTableAtt(primaryKey)%> inverse="false" lazy="true" cascade="all"> <key> <% foreach(ColumnSchema column in primaryKey.ForeignKeyMemberColumns) { %> --- 51,55 ---- <% foreach(TableKeySchema primaryKey in SourceTable.PrimaryKeys) { %> <% if (IsManyToManyTable(primaryKey.ForeignKeyTable)) { %> ! <bag<%= CollectionManyToManyNameAtt(primaryKey)%><%= CollectionTableAtt(primaryKey)%> inverse="false" lazy="true" cascade="none"> <key> <% foreach(ColumnSchema column in primaryKey.ForeignKeyMemberColumns) { %> |