Skip to content

Commit e5dc48b

Browse files
NH-4000 - Release notes.
1 parent 55dbc8a commit e5dc48b

File tree

1 file changed

+206
-3
lines changed

1 file changed

+206
-3
lines changed

releasenotes.txt

Lines changed: 206 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,206 @@
1+
Build 5.0.0
2+
=============================
3+
4+
** Known BREAKING CHANGES from NH4.1.1.GA to 5.0.0
5+
6+
NHibernate now targets .Net 4.6.1.
7+
8+
Remotion.Linq and Antlr3 libraries are no more merged in the NHibernate library,
9+
and must be deployed along NHibernate library. (NuGet will reference them.)
10+
11+
Classes and members which were flagged as obsolete in the NHibernate 4.x series have been dropped.
12+
Prior to upgrading, fix any obsolete warning according to its message. See NH-4075 and NH-3684 for a list.
13+
14+
##### Possible Breaking Changes #####
15+
* All members exposing some System.Data types have been changed for corresponding System.Data.Common
16+
types. (IDbCommand => DbCommand, ...)
17+
* Transaction scopes handling has undergone a major rework. See NH-4011 for full details.
18+
** More transaction promotion to distributed may occur if you use the "flush on commit" feature with
19+
transaction scopes. Explicitly flush your session instead. Ensure it does not occur by disabling
20+
transaction.use_connection_on_system_events setting.
21+
** After transaction events no more allow using the connection when they are raised from a scope
22+
completion.
23+
** Connection enlistment in ambient transaction is now enforced by NHibernate by default.
24+
** The connection releasing is no more directly triggered by a scope completion, but by later
25+
interactions with the session.
26+
* AdoNetWithDistributedTransactionFactory has been renamed AdoNetWithSystemTransactionFactory.
27+
* Subcriteria.UniqueResult<T> for value types now return default(T) when result is null, as was
28+
already doing CriteriaImpl.UniqueResult<T>.
29+
* AliasToBeanResultTransformer property/field resolution logic has changed for supporting members
30+
which names differ only by case. See NH-3693 last comments for details.
31+
* Linq extension methods marked with attribute LinqExtensionMethod will no more be evaluated
32+
in-memory prior to query execution when they do not depend on query results, but will always be
33+
translated to their corresponding SQL call. This can be changed with a parameter of the attribute.
34+
* Linq Query methods are now native members of ISession and IStatelessSession instead of being
35+
extension methods.
36+
* Linq provider now use Remotion.Linq v2, which may break Linq provider extensions, mainly due to names
37+
changes. See https://github.com/nhibernate/nhibernate-core/pull/568 changes to test files for examples.
38+
* NHibernate Linq internals have undergone some minor changes which may breaks custom Linq providers due
39+
to method signature changes and additional methods to implement.
40+
* NullableType, its descendent (notably all PrimitiveType) and IUserType value getters and setters now
41+
take the session as an argument. This should mainly impact custom types implementors.
42+
* enabledFilter parameter has been removed from IProjection.ToSqlString and ICriterion.ToSqlString methods.
43+
* Proxy factory and proxy cache now use TypeInfo instead of System.Type. This should be transparent for
44+
most users.
45+
* ThreadSafeDictionary class has been removed. Use System.Collections.Concurrent.ConcurrentDictionary
46+
instead.
47+
* Entity mode switching capability, which had never been fully implemented, is dropped.
48+
* BytecodeProviderImpl, intended for .Net Framework 1 and broken, is dropped.
49+
* Sessions concrete classes constructors have been changed. (It is not expected for them to be used
50+
directly.)
51+
* Oracle: Hbm2dll will no-more choose N- prefixed types for typing Unicode string columns by default.
52+
This can be changed with oracle.use_n_prefixed_types_for_unicode setting, which will furthermore
53+
control DbCommand parameters typing accordingly. See NH-4062.
54+
* SqlServerCe: the id generator "native" will now resolve as table-hilo instead of identity.
55+
* Firebird: timestamp resolution is now 1ms.
56+
* PostgreSQL: if Npgsql v3 or later is used, time DbParameters will be fetch with TimeSpan instead of
57+
DateTime.
58+
59+
** Sub-task
60+
* [NH-3956] - Native SQL query plan may get wrong plan
61+
* [NH-3957] - Second level query cache may yields wrong cache entry
62+
* [NH-4001] - Remove ThreadSafeDictionary
63+
64+
** Bug
65+
* [NH-926] - Identity insert fails with SQL Ce dialect and aggressive connection release mode.
66+
* [NH-1904] - Protected properties and public properties cannot have the same name with different case
67+
* [NH-2029] - filter-def's use-many-to-one=false should take ON into consideration
68+
* [NH-2145] - AssertionFailure exception at ISession.Save
69+
* [NH-2176] - Consecutive TransactionScopes cannot be used in same NHibernate session
70+
* [NH-2238] - "DTC transaction prepare phase failed" when UPDATE:ing in a promoted TransactionScope
71+
* [NH-2241] - Batch Insert using stateless session when using second level cache throws exception when unable to determine transient status
72+
* [NH-2928] - Connections can only be closed after the Transaction is completed
73+
* [NH-3023] - Deadlocks may cause connection pool corruption when in a distributed transaction
74+
* [NH-3078] - TimeAsTimeSpanType issue when using Sybase Advantage Database
75+
* [NH-3100] - Problem in use if condition for nullable boolean in linq to NHibernate
76+
* [NH-3114] - Collection inside Component cannot be mapped to a different table
77+
* [NH-3227] - InvalidOperationException in AbstractBatcher when distributed transaction is aborted
78+
* [NH-3247] - Char value gets 'cached' in Where-queries
79+
* [NH-3374] - Session.Merge throws InvalidCastException when using a Lazy bytes[] property
80+
* [NH-3600] - ISession.Save returns wrong Id
81+
* [NH-3665] - FirstOrDefault() broken since 3.3.4 and 3.4.0
82+
* [NH-3693] - AliasToBeanResultTransformerFixture fails under Firebird
83+
* [NH-3755] - Proxy exception for multiple joined-subclass
84+
* [NH-3757] - Dynamic entity mapped with entity-name cannot have a component of a fixed class
85+
* [NH-3793] - Attribute entity-name on <key-many-to-one> is ignored, causing mapping exception
86+
* [NH-3850] - .Count(), .Any() and other aggregates return only first result on polymorphic queries
87+
* [NH-3885] - ThreadSafeDictionary is not threadsafe
88+
* [NH-3889] - Coalesce on entity in sub-select causes incorrect SQL
89+
* [NH-3911] - Reflection Optimizer tries to cast values to getter type in setter
90+
* [NH-3913] - Component has bag of child components. Child property mapping ignored
91+
* [NH-3931] - Invalid order of child inserts when using TPH inheritance
92+
* [NH-3946] - Linq where "is base class" doesn't get subclasses
93+
* [NH-3948] - CheckAndUpdateSessionStatus() called twice in CreateFilter method inside SessionImpl class
94+
* [NH-3950] - FutureValue fails on Linq queries defining a PostExecuteTransformer
95+
* [NH-3954] - Dynamic proxy cache may yield a wrong proxy
96+
* [NH-3955] - Unreliable Equals implementation
97+
* [NH-3961] - Invalid date parameter format with nullables and MappedAs
98+
* [NH-3966] - Missing command set dispose in batchers
99+
* [NH-3968] - Distributed transaction cannot be committed because AdoNetWithDistributedTransactionFactory tries to write data by using locked sqlConnection
100+
* [NH-3969] - Firebird: TimestampResolutionInTicks should be 1ms
101+
* [NH-3977] - Thread safety weaknesses of MapBasedSessionContext
102+
* [NH-3981] - CollectionHelper.DictionaryEquals throws
103+
* [NH-3985] - ObjectDisposedException is thrown when using a child session after having previously disposed of another child session.
104+
* [NH-3998] - SqlServer CE: "The column aliases must be unique" exception is thrown in some tests
105+
* [NH-4013] - SqlClientBatchingBatcher CloseCommands contract violated
106+
* [NH-4022] - MsSql2012Dialect: Invalid drop sequence statement
107+
* [NH-4024] - ODBC failures with time
108+
* [NH-4027] - Missing disposals of enumerators
109+
* [NH-4035] - Teardown failure should not prevent cleanup
110+
* [NH-4038] - Mapping a TimeSpan in a collection component mapping maps as a BIGINT
111+
* [NH-4046] - Default length too short for variable length types with SAP Anywhere / ASE
112+
* [NH-4077] - Possible race condition in ActionQueue.ExecuteActions
113+
114+
** New Feature
115+
* [NH-1530] - Add support for XmlDocType and XDocType for Oracle
116+
* [NH-2319] - IQueryable support for persistent collections
117+
* [NH-2520] - New type TimestampUtc
118+
* [NH-3488] - Strongly Typed Updates and Deletes
119+
* [NH-3771] - Implement setting to enable Batch Update with Optimistic Locking control
120+
* [NH-3905] - Support async: Blocking IO leads to ThreadPool starvation and limits scalability
121+
* [NH-3934] - Add methods WhereNot(ICriterion) and AndNot(ICriterion) in QueryOver
122+
* [NH-3951] - Support .All() result operator
123+
* [NH-3996] - Postgres: add support for XmlDocType and XDocType
124+
* [NH-4009] - Allow marking a Linq extension as db only
125+
* [NH-4017] - Handle Time parameter conversion for newer Npgsql
126+
* [NH-4018] - Port AutoJoinTransaction feature
127+
* [NH-4031] - Add an AsyncLocalSessionContext
128+
* [NH-4032] - Supports multiple factories with ThreadStaticSessionContext
129+
* [NH-4062] - Properly handle Oracle Unicode support dual model
130+
131+
** Task
132+
* [NH-3683] - Fix Compilation Warnings
133+
* [NH-3927] - Switch to SemVer version scheme
134+
* [NH-3943] - Use NuGet to reference packages instead of local copies
135+
* [NH-3944] - Upgrade to ReLinq 2
136+
* [NH-3952] - Cleanup EnumerableHelper usage
137+
* [NH-3958] - Reference documentation: missing types
138+
* [NH-3959] - Fix documentation typos
139+
* [NH-3962] - Build with MSBuild Tools 2017 (15)
140+
* [NH-3988] - Replace ApplicationException base class with just Exception
141+
* [NH-3990] - Upgrade to VS2017 Project structure
142+
* [NH-3999] - Document effect of quoted identifier on case sensitivity
143+
* [NH-4003] - Refactor session constructor
144+
* [NH-4004] - Restrict tests running on SQL CE
145+
* [NH-4010] - Visual Studio launcher still launches 2015.
146+
* [NH-4014] - Update SQLite assembly for tests
147+
* [NH-4015] - Update Npgsql driver and enable DTC for it in tests
148+
* [NH-4019] - Pass assembly into log4net functions
149+
* [NH-4020] - Use TypeBuilder.CreateTypeInfo()
150+
* [NH-4021] - Track all opened session in tests
151+
* [NH-4023] - Pass ISessionImplementor to all value setters and getters of nullable types
152+
* [NH-4026] - Update Firebird driver and use server in tests
153+
* [NH-4030] - Cleanup and xml doc of Linq Future extension
154+
* [NH-4033] - Upgrade MySql connector used in tests
155+
* [NH-4049] - EmitUtil can be cleaned up.
156+
* [NH-4050] - Use Task.Run instead of BeginInvoke in tests.
157+
* [NH-4051] - System.Linq.Dynamic (used in tests) has been abandoned, replaced by System.Linq.Dynamic.Core.
158+
* [NH-4057] - Fix tests for MySql
159+
* [NH-4058] - Fix Oracle managed failing tests
160+
* [NH-4063] - Fix ODBC failing tests
161+
* [NH-4073] - Replace NHibernate.Web.Example with modern version.
162+
* [NH-4075] - Remove code obsolete in 4.x
163+
164+
** Improvement
165+
* [NH-1851] - mapping a TimeSpan as TimeAsTimeSpan for MySQL
166+
* [NH-2444] - Document linq provider
167+
* [NH-3094] - Linq does not support unary plus and unary minus operators
168+
* [NH-3370] - remove warning about "NHibernate.Type.CustomType -- the custom type * is not serializable"
169+
* [NH-3386] - Linq OrderBy NewGuid
170+
* [NH-3431] - Replace System.Data with System.Data.Common
171+
* [NH-3578] - Subcriteria.UniqueResult<T> for value types should return default(T), same as CriteriaImpl.UniqueResult<T> when result is null
172+
* [NH-3669] - Query should be instance method of ISession
173+
* [NH-3723] - Some tests are failing when log level set to DEBUG
174+
* [NH-3744] - Fixed a misspelled word
175+
* [NH-3750] - Use NuGet to refer to Remotion.Linq (unmerge ReMotion.Linq)
176+
* [NH-3877] - Target .NET 4.6.1
177+
* [NH-3900] - Update to Nunit 3
178+
* [NH-3932] - Merge() may fire unnecessary updates if collection and version mapping exists
179+
* [NH-3945] - Update to Antlr 3.5.1
180+
* [NH-3963] - More explicit error on MappedAs invalid usage.
181+
* [NH-3964] - Refactor reflection patterns
182+
* [NH-3970] - TestCase base class: avoid hiding test failure on tear-down
183+
* [NH-3973] - Remove enabledFilter parameter from IProjection.ToSqlString and ICriterion.ToSqlString methods
184+
* [NH-3975] - Synchronize some features dialect support properties
185+
* [NH-3978] - Extract IDatabaseMetadata from DatabaseMetadata
186+
* [NH-3987] - Re-implement NhQueryable options
187+
* [NH-3993] - Component Element Customizer Missing ability to map non-public parents and composite element relations
188+
* [NH-3997] - SqlServer CE: Make native generator to be TableHiLoGenerator
189+
* [NH-4034] - Flush all sessions participating in a transaction
190+
* [NH-4043] - Complete keyword registration needs done in dialects.
191+
* [NH-4052] - Collect schema validation exceptions
192+
* [NH-4064] - Unmerge Antrl3.Runtime
193+
* [NH-4076] - Do not resurrect session
194+
195+
** Remove Feature
196+
* [NH-3684] - Remove <Time>Part Extension Methods of QueryOver
197+
* [NH-3700] - Remove CodeDom BytecodeProviderImpl
198+
* [NH-3722] - Remove entity mode switching capability
199+
200+
** Meta Issue
201+
* [NH-4011] - Fix transaction scopes handling
202+
203+
1204
Build 4.1.1.GA
2205
=============================
3206

@@ -3062,7 +3265,7 @@ Alpha Build 0.3.0.0
30623265
- BatcherImpl and PreparerImpl were combined and code cleaned up thanks to problems found when using Ngpsql (Martijn Boland).
30633266
- ITransaction is now responsible for joining IDbCommand to IDbTransaction instead of IBatcher - if applicable.
30643267
- Modified code to help improve performance of Drivers that don't support multiple Open DataReaders on a single IDbConnection.
3065-
- Fixed bug with hbm2net and VelocityRenderer throwing Exception (Carlos Guzm�n �lvarez & Peter Smulovics).
3268+
- Fixed bug with hbm2net and VelocityRenderer throwing Exception (Carlos Guzm�n �lvarez & Peter Smulovics).
30663269
- Clean up of hbm2net (Peter Smulovics).
30673270
- Modified internals of AbstractEntityPersister to help with buiding on Mono (Oliver Weichhold).
30683271
- Renamed nhibernate.build to NHibernate.build to help with building on Mono (Oliver Weichhold).
@@ -3114,10 +3317,10 @@ PreAlpha Build 0.1.0.0
31143317
- nhibernate-configuration-2.0.xsd schema was updated to .net friendly names and all cfg.xml files are now validated.
31153318
- Fixed bug with classes having dynamic-insert and dynamic-update causing IndexOutOfRangeExceptions.
31163319
- Modified length of string for CultureInfoType.
3117-
- Added Firebird fixes contributed by Carlos Guzm�n �lvarez.
3320+
- Added Firebird fixes contributed by Carlos Guzm�n �lvarez.
31183321
- Changed TimestampType.Set to behaive like hibernate. Will not write a null value anymore - instead replaces it with DateTime.Now.
31193322
- Removed IVersionType interface from DecimalType.
3120-
- Add PropertyExpressions contributed by Carlos Guzm�n �lvarez.
3323+
- Add PropertyExpressions contributed by Carlos Guzm�n �lvarez.
31213324
- Fixed bug with referencing joined classes properties in hql.
31223325
- Fixed IndexOutOfRangeException with NormalizedEntityPersister for versioned entities.
31233326
- Added ObjectType to TypeFactory and NHibernate.

0 commit comments

Comments
 (0)