Skip to content

Commit 61cd632

Browse files
Release 5.2.0
1 parent b1b4fd9 commit 61cd632

File tree

5 files changed

+206
-6
lines changed

5 files changed

+206
-6
lines changed

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 5.1.3.{build}
1+
version: 5.2.0.{build}
22
image: Visual Studio 2017
33
environment:
44
matrix:

build-common/NHibernate.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<Import Project="DotNetSdkMono.props" />
33
<PropertyGroup>
44
<VersionMajor Condition="'$(VersionMajor)' == ''">5</VersionMajor>
5-
<VersionMinor Condition="'$(VersionMinor)' == ''">1</VersionMinor>
6-
<VersionPatch Condition="'$(VersionPatch)' == ''">3</VersionPatch>
5+
<VersionMinor Condition="'$(VersionMinor)' == ''">2</VersionMinor>
6+
<VersionPatch Condition="'$(VersionPatch)' == ''">0</VersionPatch>
77
<VersionSuffix Condition="'$(VersionSuffix)' == ''"></VersionSuffix>
88

99
<VersionPrefix>$(VersionMajor).$(VersionMinor).$(VersionPatch)</VersionPrefix>

build-common/common.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
<!-- This is used only for build folder -->
1515
<!-- TODO: Either remove or refactor to use NHibernate.props -->
16-
<property name="project.version" value="5.1.3" overwrite="false" />
17-
<property name="project.version.numeric" value="5.1.3" overwrite="false" />
16+
<property name="project.version" value="5.2.0" overwrite="false" />
17+
<property name="project.version.numeric" value="5.2.0" overwrite="false" />
1818

1919
<!-- properties used to connect to database for testing -->
2020
<include buildfile="nhibernate-properties.xml" />

doc/reference/master.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<bookinfo>
4040
<title>NHibernate - Relational Persistence for Idiomatic .NET</title>
4141
<subtitle>NHibernate Reference Documentation</subtitle>
42-
<releaseinfo>5.1</releaseinfo>
42+
<releaseinfo>5.2</releaseinfo>
4343
</bookinfo>
4444

4545
<toc />

releasenotes.txt

Lines changed: 200 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,206 @@ Build 5.2.0
33

44
Release notes - NHibernate - Version 5.2.0
55

6+
132 issues were resolved in this release.
7+
8+
##### Possible Breaking Changes #####
9+
* With PostgreSQL, an HQL query using the bitwise xor operator "^" or "bxor"
10+
was exponentiating the arguments instead. It will now correctly apply the xor
11+
operator. (# operator in PostgreSQL SQL.)
12+
* Auto-generated constraint names will not be the same than the ones generated
13+
with previous NHibernate versions under .Net Framework. (Under .Net Core those
14+
names were anyway changing at each run.) The new ones will be the same
15+
whatever the runtime used for generating them.
16+
* Some generated PK names may change, if a table name has a quoting symbol at
17+
precise 13th character.
18+
* The WcfOperationSessionContext has been removed from .Net Core and .Net
19+
Standard builds. See #1842.
20+
* Some types cache representations have changed. Out-of-process second level
21+
caches should be cleared after upgrading NHibernate, if some of those types
22+
were cached. The concerned types are: CultureInfoType, TypeType, UriType,
23+
XDocType, XmlDocType.
24+
* NHibernate StringType has gained case-sensitivity and culture parameters.
25+
Previously it was ignoring parameters. This type may change its behavior
26+
for any mapping having defined parameters for this type. See #1833.
27+
* Querying a dynamic entity as a Hashtable instead of an IDictionary is no more
28+
supported.
29+
* Mapping a dynamic component with a Hashtable property instead of an
30+
IDictionary is no more supported.
31+
* Dialect.GetIdentitySelectString was called by the entity persisters with
32+
inverted parameter values: the table name in the column parameter, and the
33+
column name in the table parameter. No built-in dialects were using the
34+
parameter values. External dialects which were using it inverted (causing issues
35+
to collection persisters, which have always supplied them correctly) needs
36+
to be accordingly adjusted.
37+
* Users providing through an IObjectFactory some custom logic for instantiating
38+
value types will now need to supply their own result transformer if they were
39+
using AliasToBeanResultTransformer with value types, or their own entity
40+
tuplizer if they were using value types as entities.
41+
* Users providing through an IObjectFactory some custom logic for instantiating
42+
their custom session contexts will have to implement
43+
ICurrentSessionContextWithFactory and add a parameterless public constructor
44+
to their custom context, and move their custom instantiation logic from
45+
IObjectsFactory.CreateInstance(Type, object[]) to
46+
IObjectsFactory.CreateInstance(Type).
47+
* Various *Binding classes of NHibernate will now always have their protected
48+
dialect field null. (These classes are not expected to be derived by users,
49+
as there is no way to use custom descendants with NHibernate.)
50+
* AbstractPersistentCollection.AfterInitialize does no more perform queued
51+
operations. Queued operations are now run by a later call to a new method,
52+
ApplyPendingOperations. Concrete custom implementations relying on the queued
53+
operations to be done by their base AfterInitialize will need to be changed
54+
accordingly.
55+
56+
Not yet merged possible breaking changes:
57+
* ISession.Persist will no more always trigger immediate insertion of entities
58+
having an identity-like id generator. See #1754.
59+
* Mappings mixing column elements and formula elements were taking into account
60+
only the formula elements, excepted for many-to-one which which taking into
61+
account both element types. They will now all take into account all elements.
62+
63+
Not yet merged and not counted: #1859, #1855, #1836, #1831, #1793, #1812, #1808,
64+
#1778, #1777, #1759, #1754, #822, #1480, #1626, #1627
65+
66+
** Bug
67+
68+
* #1885 Process classes accordingly to inheritance path in mapping by code
69+
* #1884 Fix attempt of static proxies to call base method for abstract classes
70+
* #1874 Item in child collection not being removed
71+
* #1872 Fix property ref handling
72+
* #1870 Update build-menu options in documentation
73+
* #1867 Fix registration of current_date for some dialects
74+
* #1849 Loquatious QueryCache constraint should be an IQueryCacheFactory constraint
75+
* #1824 property-ref on a component's property causes "wrong number of columns" error
76+
* #1818 Handle DbDataReaders that do not support GetSchemaTable
77+
* #1809 Update the mapping documentation
78+
* #1799 Default value of 'proxyfactory.factory_class' in the documentation
79+
* #1774 HQL and LINQ query by the type on with meta-type "string" fails
80+
* #1769 Table mapping for UniqueColumn uses unstable GetHashCode() method
81+
* #1764 Fix configuration schema forbidding custom bytecode provider
82+
* #1760 Support formula on one-to-many map-key
83+
* #1756 Fix unsaved-value for assigned identifiers
84+
* #1753 Fix possible InvalidCastException in ActionQueue
85+
* #1751 Avoid completing the same transaction twice
86+
* #1748 Fix a bad setting naming about transaction scopes
87+
* #1745 Remove obsoleted hibernate configuration prefix
88+
* #1744 Reconnect lazy property proxy on deserialization
89+
* #1737 Remove a binary breaking change introduced in #305
90+
* #1728 Generate a correct proxy for interfaces
91+
* #1727 Fix a null-ref exception with no-proxy one-to-one
92+
* #1726 Fix serialization exception when run on .NET Core 2.1
93+
* #1719 Cascade delete-orphan on no-proxy null association fails
94+
* #1706 Entity Projection: Fixed AsEntity() for root entity
95+
* #1704 GroupBy to custom class fails with ArgumentException
96+
* #1696 Fixed CriteriaImpl.Clone for readonly query
97+
* #1692 Update base_mapping.xml
98+
* #1673 Bitwise xor treated as pow with PostgreSQL
99+
* #1654 Fix the url to the quickstart of DocBook
100+
* #1635 IdentitySelectString implementation is inconsistent
101+
* #1612 Fix TypedValue not always using adequate comparer with SetParameterList
102+
* #1609 Schema validation using SQLite and a specific schema fails
103+
* #1344 NH-3864 - Cacheable Multicriteria/Future'd query with aliased join throw exception
104+
* #1339 NH-3823 - Initialization of Set with Lazy=Extra causes pending additions to disappear
105+
* #1338 NH-3806 - Saving entities with proxy associations leads to fetching associated entities
106+
* #1300 NH-3403 - Wrong parameter size in query with MsSql2000Dialect,MsSql2005Dialect and MsSql2008Dialect
107+
* #1293 NH-3350 - Duplicate records using Future()
108+
* #1201 NH-1316 - PostgreSQL dialect use of lastval to retrieve last inserted "id" not safe with Triggers
109+
* #1182 NH-3860 - Missing EntityName in IManyToOneMapper
110+
* #1170 NH-3646 - Incorrect query when items removed from a collection of components contain null values
111+
* #1163 NH-3545 - SchemaValidator fails for PostgreSql sequences
112+
* #1121 NH-3095 - Cast from mapped long field to enum leads to 'Specified cast not valid'
113+
* #1096 NH-2836 - SchemaValidator throws with SqlCe4 if db-schema set
114+
* #1037 NH-3749 - Unnecessary comma in CREATE TABLE statement
115+
* #1016 NH-3007 - Informix dialect generates incorrect boolean constants
116+
* #1000 NH-2558 - NoViableAltException with boolean expression in OrderBy clause
117+
118+
** New Feature
119+
120+
* #1879 LINQ Coalesce and Conditional on Properties
121+
* #1848 Add in ByCode support of all type mappings on Id
122+
* #1833 Parametrize string type comparer
123+
* #1830 Add a Linux build menu
124+
* #1796 Support CacheMode in QueryBatch
125+
* #1786 Document future results
126+
* #1772 Support futures with stateless session
127+
* #1752 Async ISynchronization
128+
* #1742 Add new DB2CoreDriver to use with IBM.Data.DB2.Core provider
129+
* #1693 Implement SurrogateSelector
130+
* #1690 Bitwise xor not supported by SQLite
131+
* #1682 Add support for System.MathF methods
132+
* #1662 Add support for SAP HANA
133+
* #1633 Added support for batching 2nd level cache operations when loading entities and collections
134+
* #1631 Create UtcTicks and UtcDbTimestamp types
135+
* #1599 Full control of entities fetching in Criteria
136+
* #1381 NHibernate's IQuery is missing AddSynchronizedQuerySpace
137+
* #920 NH-3991 - Support for Sybase ASE ADO.NET 4 Provider
138+
* #897 NH-2187 - ElementAt LINQ extension method is not supported.
139+
* #838 NH-3805 - Add support for string indexer property (get_Chars)
140+
* #819 NH-3088 - Support the item operator [] on lists in linq queries
141+
142+
** Improvement
143+
144+
* #1890 Merge two logs in one
145+
* #1869 Replace an O(n) lookup in LINQ query parsing by an O(1) one
146+
* #1846 Remove dependency on System.Security.Permissions package for .NET Standard and .NET Core
147+
* #1842 Remove WcfOperationSessionContext from .Net Core and .Net Standard
148+
* #1838 Cannot add HqlJoin to HqlFrom
149+
* #1827 Include the query in loader PostInstantiate QueryException
150+
* #1819 Append the batched sql statement when StaleStateException occurs
151+
* #1814 Mark proxy assembly with IgnoresAccessChecksToAttribute to allow implementing non public interfaces
152+
* #1792 Obsolete HolderInstantiator
153+
* #1788 Implement multiple get and put for query cache and query batch
154+
* #1785 Update user types documentation
155+
* #1782 Refactor BugTestCase
156+
* #1781 Clean-up IObjectsFactory usages
157+
* #1776 Make cache types serialization friendly
158+
* #1775 Start/Stop required db-service for TeamCity
159+
* #1770 Make obsolete abstract virtual
160+
* #1767 Allow generic dictionaries for dynamic entities
161+
* #1765 Provide cacheable representations for all NHibernate built-in types
162+
* #1762 Remove duplicated and obsolete interceptor documentation
163+
* #1761 Update mapping documentation
164+
* #1736 Remove excessive rowIdAlias parameter in Loader
165+
* #1713 Update contributing guidelines
166+
* #1712 Support IEquatable in LINQ provider
167+
* #1710 Rationalize DateTimeOffset read and write
168+
* #1709 Lazy properties static proxy
169+
* #1703 Remove dialect instantiation in AddDeserializedMapping
170+
* #1700 Single place to specify TargetFrameworks
171+
* #1699 Add ability to load types from in-memory-only assemblies
172+
* #1698 Document setting the logger factory programmatically
173+
* #1694 Implement CollectionHelper.GetHashCode that accepts IEqualityComparer
174+
* #1689 Purge more Invariant culture usages
175+
* #1671 Decouple configuration of IObjectsFactory from BytecodeProvider
176+
* #1666 Handle multi-queries support in FutureBatch
177+
* #1656 Allow any cache.* property in NHibernate configuration
178+
* #1641 Add cross platform build for full .NET Framework
179+
* #1452 Async After-/BeforeTransactionCompletion
180+
* #874 NH-3543 - Enhanced Db2 driver to support multi query
181+
* #865 NH-2428 - Session.MultiCriteria and FlushMode.Auto inside transaction
182+
* #840 NH-3835 - Future/MultiCriteria 2nd level caching
183+
* #755 NH-3670 - Dynamic component should allow generic dictionary
184+
* #752 NH-3541 - Future queries of Criteria API/QueryOver are batched separately from other query methods
185+
* #696 Upgrade to ReLinq 2.2.0
186+
* #415 Add check to ensure that IUserCollectionType.Instantiate returns uninitialized collection
187+
188+
** Task
189+
190+
* #1863 Release 5.2.0
191+
* #1823 Run tests for SQLite on .NET Core
192+
* #1783 Obsolete MultiQuery and MultiCriteria
193+
* #1773 Obsolete unused version related methods of SByteType
194+
* #1771 Obsolete unused "xml" type methods
195+
* #1743 Merge 5.1.3 into master
196+
* #1739 Upgrade to AsyncGenerator 0.8.2.7
197+
* #1688 Merge 5.1.2 into master
198+
* #1687 Update NUnit to 3.10.1
199+
* #881 NH-3358 - Document all attributes for the element tag
200+
201+
** Tests
202+
203+
* #1887 Test ref and out methods with static proxy
204+
* #1724 NH-2716 - Modify test case for discarding the alleged bug
205+
6206

7207
As part of releasing 5.2.0, a misnamed setting in 5.0.0 release notes has been fixed:
8208
transaction.use_connection_on_system_events correct name is transaction.use_connection_on_system_prepare

0 commit comments

Comments
 (0)