Update of /cvsroot/nugsoft/nugsoft/nUGSoft.Entities/Mapping Files
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31839/nUGSoft.Entities/Mapping Files
Modified Files:
Person.hbm.xml PersonType.hbm.xml
Log Message:
Cascades should be "none" for many-to-many relationships. See 11.11. "Transitive persistence" of Hibernate dox.
Index: Person.hbm.xml
===================================================================
RCS file: /cvsroot/nugsoft/nugsoft/nUGSoft.Entities/Mapping Files/Person.hbm.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** Person.hbm.xml 29 Nov 2005 02:39:24 -0000 1.2
--- Person.hbm.xml 4 Dec 2005 03:28:40 -0000 1.3
***************
*** 53,57 ****
</property>
<!-- False lazy loads due to session handling -->
! <bag name="Events" table="Attendance" inverse="false" lazy="false" cascade="all">
<key>
<column name="PersonID" sql-type="int" not-null="true"/>
--- 53,57 ----
</property>
<!-- False lazy loads due to session handling -->
! <bag name="Events" table="Attendance" inverse="false" lazy="false" cascade="none">
<key>
<column name="PersonID" sql-type="int" not-null="true"/>
***************
*** 61,65 ****
</many-to-many>
</bag>
! <bag name="EventsEventCreatorID" table="Event" inverse="true" lazy="false" cascade="all">
<key>
<column name="EventCreatorID" sql-type="int" not-null="true"/>
--- 61,65 ----
</many-to-many>
</bag>
! <bag name="EventsEventCreatorID" table="Event" inverse="true" lazy="false" cascade="none">
<key>
<column name="EventCreatorID" sql-type="int" not-null="true"/>
***************
*** 68,72 ****
</bag>
! <bag name="PersonTypes" table="PersonTypeLink" inverse="false" lazy="false" cascade="all">
<key>
<column name="PersonID" sql-type="int" not-null="true"/>
--- 68,72 ----
</bag>
! <bag name="PersonTypes" table="PersonTypeLink" inverse="false" lazy="false" cascade="none">
<key>
<column name="PersonID" sql-type="int" not-null="true"/>
***************
*** 77,86 ****
</bag>
<!--
! <bag name="Posts" inverse="true" lazy="false" cascade="all">
<key column="PersonID"/>
<one-to-many class="nUGSoft.Entities.Post, nUGSoft.Entities"/>
</bag>
-->
! <bag name="SubscriptionLinks" table="SubscriptionLink" inverse="true" lazy="false" cascade="all">
<key>
<column name="PersonID" sql-type="int" not-null="true"/>
--- 77,86 ----
</bag>
<!--
! <bag name="Posts" inverse="true" lazy="false" cascade="none">
<key column="PersonID"/>
<one-to-many class="nUGSoft.Entities.Post, nUGSoft.Entities"/>
</bag>
-->
! <bag name="SubscriptionLinks" table="SubscriptionLink" inverse="true" lazy="false" cascade="none">
<key>
<column name="PersonID" sql-type="int" not-null="true"/>
Index: PersonType.hbm.xml
===================================================================
RCS file: /cvsroot/nugsoft/nugsoft/nUGSoft.Entities/Mapping Files/PersonType.hbm.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** PersonType.hbm.xml 29 Nov 2005 02:23:22 -0000 1.2
--- PersonType.hbm.xml 4 Dec 2005 03:28:40 -0000 1.3
***************
*** 11,15 ****
</property>
! <bag name="Persons" table="PersonTypeLink" inverse="false" lazy="true" cascade="all">
<key>
<column name="PersonTypeID" sql-type="int" not-null="true"/>
--- 11,15 ----
</property>
! <bag name="Persons" table="PersonTypeLink" inverse="false" lazy="true" cascade="none">
<key>
<column name="PersonTypeID" sql-type="int" not-null="true"/>
|