File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
src/NHibernate.Test/NHSpecificTest/NH3874 Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ protected override void OnSetUp()
18
18
using ( var session = OpenSession ( ) )
19
19
using ( var tx = session . BeginTransaction ( ) )
20
20
{
21
- var one = new One ( ) ;
21
+ var one = new One { Name = "One" } ;
22
22
var two = new Two { One = one } ;
23
23
two . One . Twos = new [ ] { two } ;
24
24
_id = session . Save ( one ) ;
Original file line number Diff line number Diff line change 8
8
<id name =" Id" column =" Zzzz" type =" IntWrapperType" >
9
9
<generator class =" identity" />
10
10
</id >
11
-
11
+ < property name = " Name " />
12
12
<bag name =" Twos" cascade =" all-delete-orphan" inverse =" true" lazy =" true" >
13
13
<key column =" WeirdId" />
14
14
<one-to-many class =" Two" />
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ public class One
6
6
{
7
7
public virtual IntWrapper Id { get ; set ; }
8
8
9
+ public virtual string Name { get ; set ; }
10
+
9
11
public virtual IList < Two > Twos { get ; set ; }
10
12
}
11
13
}
You can’t perform that action at this time.
0 commit comments