Skip to content

Commit 7331b4f

Browse files
Merge branch 'master' into CacheBase
2 parents 7d0c21e + f3be548 commit 7331b4f

File tree

811 files changed

+2023
-2313
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

811 files changed

+2023
-2313
lines changed

doc/reference/modules/component_mapping.xml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -138,16 +138,6 @@
138138
model and persistence semantics are still slightly different.
139139
</para>
140140

141-
<para>
142-
A composite element mapping does not support null-able properties if you are using
143-
a <literal>&lt;set&gt;</literal>. There is no separate primary key column in the
144-
composite element table. NHibernate uses each column's value to identify a record
145-
when deleting objects, which is not possible with null values. You have to either
146-
use only not-null properties in a composite-element or choose a
147-
<literal>&lt;list&gt;</literal>, <literal>&lt;map&gt;</literal>,
148-
<literal>&lt;bag&gt;</literal> or <literal>&lt;idbag&gt;</literal>.
149-
</para>
150-
151141
<para>
152142
A special case of a composite element is a composite element with a nested
153143
<literal>&lt;many-to-one&gt;</literal> element. This mapping allows you to map extra

src/NHibernate.DomainModel/NHSpecific/NullableInt32Type.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,9 @@ public override void Set(DbCommand cmd, object value, int index, ISessionImpleme
4646
}
4747
}
4848

49-
public override object FromStringValue(string xml)
50-
{
51-
return NullableInt32.Parse(xml);
52-
}
53-
5449
public override bool[] ToColumnNullness(object value, Engine.IMapping mapping)
5550
{
5651
return value == null || NullableInt32.Default.Equals(value) ? new bool[] { false } : new bool[] { true };
5752
}
5853
}
59-
}
54+
}

src/NHibernate.DomainModel/NHSpecific/NullableTypesType.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@ public override object Get(DbDataReader rs, string name, ISessionImplementor ses
3535
return Get(rs, rs.GetOrdinal(name), session);
3636
}
3737

38-
public override string ToString(object value)
39-
{
40-
return value.ToString();
41-
}
42-
4338
public override string Name
4439
{
4540
get { return ReturnedClass.Name; }
@@ -52,4 +47,4 @@ public override bool IsEqual(object x, object y)
5247

5348
public abstract object NullValue { get; }
5449
}
55-
}
50+
}

src/NHibernate.Test.VisualBasic/Issues/IssueTestCase.vb

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,4 @@
22

33
Public Class IssueTestCase
44
Inherits BugTestCase
5-
6-
Protected Overrides ReadOnly Property MappingsAssembly As String
7-
Get
8-
Return "NHibernate.Test.VisualBasic"
9-
End Get
10-
End Property
11-
12-
Protected Overrides ReadOnly Property Mappings As IList
13-
Get
14-
Return New String() {"Issues." + BugNumber + ".Mappings.hbm.xml"}
15-
End Get
16-
End Property
17-
185
End Class

src/NHibernate.Test/Ado/BatcherFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ protected override string MappingsAssembly
1313
get { return "NHibernate.Test"; }
1414
}
1515

16-
protected override IList Mappings
16+
protected override string[] Mappings
1717
{
1818
get { return new[] { "Ado.VerySimple.hbm.xml", "Ado.AlmostSimple.hbm.xml" }; }
1919
}

src/NHibernate.Test/Ado/GenericBatchingBatcherFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class GenericBatchingBatcherFixture : TestCase
1515
{
1616
protected override string MappingsAssembly => "NHibernate.Test";
1717

18-
protected override IList Mappings => new[] {"Ado.VerySimple.hbm.xml"};
18+
protected override string[] Mappings => new[] {"Ado.VerySimple.hbm.xml"};
1919

2020
protected override void Configure(Configuration configuration)
2121
{

src/NHibernate.Test/Any/AnyTypeTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ protected override string MappingsAssembly
1111
get { return "NHibernate.Test"; }
1212
}
1313

14-
protected override IList Mappings
14+
protected override string[] Mappings
1515
{
1616
get { return new string[] {"Any.Person.hbm.xml"}; }
1717
}

src/NHibernate.Test/Async/Ado/BatcherFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ protected override string MappingsAssembly
2525
get { return "NHibernate.Test"; }
2626
}
2727

28-
protected override IList Mappings
28+
protected override string[] Mappings
2929
{
3030
get { return new[] { "Ado.VerySimple.hbm.xml", "Ado.AlmostSimple.hbm.xml" }; }
3131
}

src/NHibernate.Test/Async/Ado/GenericBatchingBatcherFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class GenericBatchingBatcherFixtureAsync : TestCase
2828
{
2929
protected override string MappingsAssembly => "NHibernate.Test";
3030

31-
protected override IList Mappings => new[] {"Ado.VerySimple.hbm.xml"};
31+
protected override string[] Mappings => new[] {"Ado.VerySimple.hbm.xml"};
3232

3333
protected override void Configure(Configuration configuration)
3434
{

src/NHibernate.Test/Async/Any/AnyTypeTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ protected override string MappingsAssembly
2222
get { return "NHibernate.Test"; }
2323
}
2424

25-
protected override IList Mappings
25+
protected override string[] Mappings
2626
{
2727
get { return new string[] {"Any.Person.hbm.xml"}; }
2828
}

0 commit comments

Comments
 (0)