@@ -3,6 +3,208 @@ Build 5.2.0
33
44Release notes - NHibernate - Version 5.2.0
55
6+ 134 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+ * #1886 Superfluous SQL casts generated in FirebirdClientDriver
69+ * #1885 Process classes accordingly to inheritance path in mapping by code
70+ * #1884 Fix attempt of static proxies to call base method for abstract classes
71+ * #1874 Item in child collection not being removed
72+ * #1872 Fix property ref handling
73+ * #1870 Update build-menu options in documentation
74+ * #1867 Fix registration of current_date for some dialects
75+ * #1849 Loquatious QueryCache constraint should be an IQueryCacheFactory constraint
76+ * #1824 property-ref on a component's property causes "wrong number of columns" error
77+ * #1818 Handle DbDataReaders that do not support GetSchemaTable
78+ * #1809 Update the mapping documentation
79+ * #1799 Default value of 'proxyfactory.factory_class' in the documentation
80+ * #1774 HQL and LINQ query by the type on with meta-type "string" fails
81+ * #1769 Table mapping for UniqueColumn uses unstable GetHashCode() method
82+ * #1764 Fix configuration schema forbidding custom bytecode provider
83+ * #1760 Support formula on one-to-many map-key
84+ * #1756 Fix unsaved-value for assigned identifiers
85+ * #1753 Fix possible InvalidCastException in ActionQueue
86+ * #1751 Avoid completing the same transaction twice
87+ * #1748 Fix a bad setting naming about transaction scopes
88+ * #1745 Remove obsoleted hibernate configuration prefix
89+ * #1744 Reconnect lazy property proxy on deserialization
90+ * #1737 Remove a binary breaking change introduced in #305
91+ * #1728 Generate a correct proxy for interfaces
92+ * #1727 Fix a null-ref exception with no-proxy one-to-one
93+ * #1726 Fix serialization exception when run on .NET Core 2.1
94+ * #1719 Cascade delete-orphan on no-proxy null association fails
95+ * #1706 Entity Projection: Fixed AsEntity() for root entity
96+ * #1704 GroupBy to custom class fails with ArgumentException
97+ * #1696 Fixed CriteriaImpl.Clone for readonly query
98+ * #1692 Update base_mapping.xml
99+ * #1673 Bitwise xor treated as pow with PostgreSQL
100+ * #1654 Fix the url to the quickstart of DocBook
101+ * #1635 IdentitySelectString implementation is inconsistent
102+ * #1612 Fix TypedValue not always using adequate comparer with SetParameterList
103+ * #1609 Schema validation using SQLite and a specific schema fails
104+ * #1344 NH-3864 - Cacheable Multicriteria/Future'd query with aliased join throw exception
105+ * #1339 NH-3823 - Initialization of Set with Lazy=Extra causes pending additions to disappear
106+ * #1338 NH-3806 - Saving entities with proxy associations leads to fetching associated entities
107+ * #1300 NH-3403 - Wrong parameter size in query with MsSql2000Dialect,MsSql2005Dialect and MsSql2008Dialect
108+ * #1293 NH-3350 - Duplicate records using Future()
109+ * #1201 NH-1316 - PostgreSQL dialect use of lastval to retrieve last inserted "id" not safe with Triggers
110+ * #1182 NH-3860 - Missing EntityName in IManyToOneMapper
111+ * #1170 NH-3646 - Incorrect query when items removed from a collection of components contain null values
112+ * #1163 NH-3545 - SchemaValidator fails for PostgreSql sequences
113+ * #1121 NH-3095 - Cast from mapped long field to enum leads to 'Specified cast not valid'
114+ * #1096 NH-2836 - SchemaValidator throws with SqlCe4 if db-schema set
115+ * #1037 NH-3749 - Unnecessary comma in CREATE TABLE statement
116+ * #1016 NH-3007 - Informix dialect generates incorrect boolean constants
117+ * #1000 NH-2558 - NoViableAltException with boolean expression in OrderBy clause
118+
119+ ** New Feature
120+
121+ * #1892 Allow disabling Firebird driver parameter casting
122+ * #1879 LINQ Coalesce and Conditional on Properties
123+ * #1848 Add in ByCode support of all type mappings on Id
124+ * #1833 Parametrize string type comparer
125+ * #1830 Add a Linux build menu
126+ * #1796 Support CacheMode in QueryBatch
127+ * #1786 Document future results
128+ * #1772 Support futures with stateless session
129+ * #1752 Async ISynchronization
130+ * #1742 Add new DB2CoreDriver to use with IBM.Data.DB2.Core provider
131+ * #1693 Implement SurrogateSelector
132+ * #1690 Bitwise xor not supported by SQLite
133+ * #1682 Add support for System.MathF methods
134+ * #1662 Add support for SAP HANA
135+ * #1633 Added support for batching 2nd level cache operations when loading entities and collections
136+ * #1631 Create UtcTicks and UtcDbTimestamp types
137+ * #1599 Full control of entities fetching in Criteria
138+ * #1381 NHibernate's IQuery is missing AddSynchronizedQuerySpace
139+ * #920 NH-3991 - Support for Sybase ASE ADO.NET 4 Provider
140+ * #897 NH-2187 - ElementAt LINQ extension method is not supported.
141+ * #838 NH-3805 - Add support for string indexer property (get_Chars)
142+ * #819 NH-3088 - Support the item operator [] on lists in linq queries
143+
144+ ** Improvement
145+
146+ * #1890 Merge two logs in one
147+ * #1869 Replace an O(n) lookup in LINQ query parsing by an O(1) one
148+ * #1846 Remove dependency on System.Security.Permissions package for .NET Standard and .NET Core
149+ * #1842 Remove WcfOperationSessionContext from .Net Core and .Net Standard
150+ * #1838 Cannot add HqlJoin to HqlFrom
151+ * #1827 Include the query in loader PostInstantiate QueryException
152+ * #1819 Append the batched sql statement when StaleStateException occurs
153+ * #1814 Mark proxy assembly with IgnoresAccessChecksToAttribute to allow implementing non public interfaces
154+ * #1792 Obsolete HolderInstantiator
155+ * #1788 Implement multiple get and put for query cache and query batch
156+ * #1785 Update user types documentation
157+ * #1782 Refactor BugTestCase
158+ * #1781 Clean-up IObjectsFactory usages
159+ * #1776 Make cache types serialization friendly
160+ * #1775 Start/Stop required db-service for TeamCity
161+ * #1770 Make obsolete abstract virtual
162+ * #1767 Allow generic dictionaries for dynamic entities
163+ * #1765 Provide cacheable representations for all NHibernate built-in types
164+ * #1762 Remove duplicated and obsolete interceptor documentation
165+ * #1761 Update mapping documentation
166+ * #1736 Remove excessive rowIdAlias parameter in Loader
167+ * #1713 Update contributing guidelines
168+ * #1712 Support IEquatable in LINQ provider
169+ * #1710 Rationalize DateTimeOffset read and write
170+ * #1709 Lazy properties static proxy
171+ * #1703 Remove dialect instantiation in AddDeserializedMapping
172+ * #1700 Single place to specify TargetFrameworks
173+ * #1699 Add ability to load types from in-memory-only assemblies
174+ * #1698 Document setting the logger factory programmatically
175+ * #1694 Implement CollectionHelper.GetHashCode that accepts IEqualityComparer
176+ * #1689 Purge more Invariant culture usages
177+ * #1671 Decouple configuration of IObjectsFactory from BytecodeProvider
178+ * #1666 Handle multi-queries support in FutureBatch
179+ * #1656 Allow any cache.* property in NHibernate configuration
180+ * #1641 Add cross platform build for full .NET Framework
181+ * #1452 Async After-/BeforeTransactionCompletion
182+ * #874 NH-3543 - Enhanced Db2 driver to support multi query
183+ * #865 NH-2428 - Session.MultiCriteria and FlushMode.Auto inside transaction
184+ * #840 NH-3835 - Future/MultiCriteria 2nd level caching
185+ * #755 NH-3670 - Dynamic component should allow generic dictionary
186+ * #752 NH-3541 - Future queries of Criteria API/QueryOver are batched separately from other query methods
187+ * #696 Upgrade to ReLinq 2.2.0
188+ * #415 Add check to ensure that IUserCollectionType.Instantiate returns uninitialized collection
189+
190+ ** Task
191+
192+ * #1863 Release 5.2.0
193+ * #1823 Run tests for SQLite on .NET Core
194+ * #1783 Obsolete MultiQuery and MultiCriteria
195+ * #1773 Obsolete unused version related methods of SByteType
196+ * #1771 Obsolete unused "xml" type methods
197+ * #1743 Merge 5.1.3 into master
198+ * #1739 Upgrade to AsyncGenerator 0.8.2.7
199+ * #1688 Merge 5.1.2 into master
200+ * #1687 Update NUnit to 3.10.1
201+ * #881 NH-3358 - Document all attributes for the element tag
202+
203+ ** Tests
204+
205+ * #1887 Test ref and out methods with static proxy
206+ * #1724 NH-2716 - Modify test case for discarding the alleged bug
207+
6208
7209As part of releasing 5.2.0, a misnamed setting in 5.0.0 release notes has been fixed:
8210transaction.use_connection_on_system_events correct name is transaction.use_connection_on_system_prepare
0 commit comments