Skip to content

Commit ffea30d

Browse files
committed
Merge branch '4.0.x'
2 parents 2becb5b + 5e3f957 commit ffea30d

File tree

52 files changed

+24490
-23561
lines changed

Some content is hidden

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

52 files changed

+24490
-23561
lines changed

build-common/common.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
effectively SP0).
6161
-->
6262

63-
<property name="project.version" value="4.0.1.GA" overwrite="false" />
63+
<property name="project.version" value="4.0.2.GA" overwrite="false" />
6464

6565
<!-- This version number should be changed if, but only if, there are incompatible
6666
changes compared to the previous version. -->

doc/reference/modules/performance.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1149,7 +1149,7 @@ sessionFactory.EvictCollection("Eg.Cat.Kittens"); //evict all kitten collections
11491149
</para>
11501150

11511151
<para>
1152-
one-shot-delete apply to collections mapped <literal>inverse="true"</literal>.
1152+
Of course, one-shot-delete does not apply to collections mapped <literal>inverse="true"</literal>.
11531153
</para>
11541154

11551155
</sect2>

lib/teamcity/firebird/NHibernate.Test.last-results.xml

Lines changed: 349 additions & 280 deletions
Large diffs are not rendered by default.

lib/teamcity/mysql/NHibernate.Test.last-results.xml

Lines changed: 294 additions & 88 deletions
Large diffs are not rendered by default.

lib/teamcity/oracle/NHibernate.Test.last-results.xml

Lines changed: 1833 additions & 1055 deletions
Large diffs are not rendered by default.

lib/teamcity/sqlServerCe/NHibernate.Test.last-results.xml

Lines changed: 5031 additions & 6174 deletions
Large diffs are not rendered by default.

lib/teamcity/sqlServerOdbc/NHibernate.Test.last-results.xml

Lines changed: 16098 additions & 15853 deletions
Large diffs are not rendered by default.

releasenotes.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
2+
Build 4.0.2.GA
3+
=============================
4+
5+
** Bug
6+
* [NH-2779] - Session.Get() can throw InvalidCastException when log-level is set to DEBUG
7+
* [NH-2782] - Linq: selecting into a new array doesn't work
8+
* [NH-2831] - NH cannot load mapping assembly from GAC
9+
* [NH-3049] - Mapping by code to Field not working
10+
* [NH-3222] - NHibernate Futures passes empty tuples to ResultSetTransformer
11+
* [NH-3650] - ComponentAsId<T> used more than once, cache first mapping and produces subsequently a sql select wrong
12+
* [NH-3709] - Fix Reference to One Shot Delete and Inverse Collections
13+
* [NH-3710] - Use of SetLockMode with DetachedCriteria causes null reference exception
14+
15+
** Task
16+
* [NH-3697] - Ignore Firebird in NHSpecificTest.NH1981
17+
* [NH-3698] - NHSpecificTest.NH1989 fails for some drivers
18+
19+
120
Build 4.0.1.GA
221
=============================
322

src/NHibernate.Test/App.config

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,5 +103,13 @@
103103
</log4net>
104104

105105
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup>
106+
<runtime>
107+
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
108+
<dependentAssembly>
109+
<assemblyIdentity name="nunit.framework" publicKeyToken="96d09a1eb7f44a77" culture="neutral"/>
110+
<bindingRedirect oldVersion="0.0.0.0-2.6.1.12217" newVersion="2.6.1.12217"/>
111+
</dependentAssembly>
112+
</assemblyBinding>
113+
</runtime>
106114

107115
</configuration>

src/NHibernate.Test/Criteria/CriteriaQueryTest.cs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2983,5 +2983,27 @@ public void IgnoreCase()
29832983
t.Commit();
29842984
}
29852985
}
2986+
2987+
[Test]
2988+
public void CanSetLockModeOnDetachedCriteria()
2989+
{
2990+
//NH-3710
2991+
var dc = DetachedCriteria
2992+
.For(typeof(Student))
2993+
.SetLockMode(LockMode.Upgrade);
2994+
2995+
using (var session = OpenSession())
2996+
using (var tx = session.BeginTransaction())
2997+
{
2998+
session.Save(new Student { Name = "Ricardo Peres", StudentNumber = 666, CityState = new CityState("Coimbra", "Portugal") });
2999+
session.Flush();
3000+
3001+
var ec = dc.GetExecutableCriteria(session);
3002+
var countExec = CriteriaTransformer.TransformToRowCount(ec);
3003+
var countRes = countExec.UniqueResult();
3004+
3005+
Assert.AreEqual(countRes, 1);
3006+
}
3007+
}
29863008
}
29873009
}

0 commit comments

Comments
 (0)