-
Notifications
You must be signed in to change notification settings - Fork 933
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix KeyNotFoundException in StatefulPersistenceContext.RemoveEntity o…
- Loading branch information
Showing
5 changed files
with
43 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/NHibernate.Test/NHSpecificTest/NH1845/Mappings.hbm.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="NHibernate.Test" | ||
namespace="NHibernate.Test.NHSpecificTest.NH1845" | ||
default-cascade="all" > | ||
<class name="Category" table="Categories" lazy="true" | ||
dynamic-update="true" select-before-update="true"> | ||
|
||
<id name="Id" column="Id" type="Int32" unsaved-value="0"> | ||
<generator class="identity" /> | ||
</id> | ||
|
||
<property name="Name" /> | ||
<property name="SortIndex" /> | ||
|
||
<many-to-one name="Parent" column="ParentCategoryId" class="Category" not-null="false"/> | ||
|
||
<list name="Subcategories" cascade="all" generic="true" access="nosetter.camelcase" | ||
inverse="true" lazy="true"> | ||
<key column="ParentCategoryId"/> | ||
<index column="SortIndex"/> | ||
<one-to-many class="Category"/> | ||
</list> | ||
</class> | ||
</hibernate-mapping> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters