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