forked from nhibernate/nhibernate-core
-
Notifications
You must be signed in to change notification settings - Fork 1
/
releasenotes.txt
3811 lines (3312 loc) · 222 KB
/
releasenotes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Build 5.1.2
=============================
Release notes - NHibernate - Version 5.1.2
** Bug
* #1680 RowCount not working with JoinEntityAlias
* #1672 Generated async methods do not correctly propagate OperationCanceledException
* #1667 Collection initializing with zero rows after update to NH5
* #1660 Wrong CopyTo implementation
* #1650 Cannot use cache.use_sliding_expiration in hibernate.cfg.xml
* #1585 Hashset unsupported by SetParameterList
* #1355 NH-3928 - Random invalid SQL generated when using bitwise operators
** Task
* #1668 Merge 5.0.5 into 5.1.x
* #1664 Release 5.1.2
* #1659 Merge 5.0.4 into 5.1.x
As part of releasing 5.1.2, a missing 5.0.0 possible breaking change has been added about future queries with data
providers not actually supporting them. See 5.0.0 possible breaking changes.
Build 5.1.1
=============================
Release notes - NHibernate - Version 5.1.1
** Bug
* #1645 One-to-one with property-ref triggers StackOverflow Exception
* #1643 TypeLoadException in StaticProxyFactory after upgrading to 5.1.0
* #1640 Handle all overloads of String.Trim*()
* #1636 Fix api documentation assets path
* #1628 StackOverflowException for lazy proxied entities with explicit interface properties
* #1618 Fix NuGet push script
* #1149 NH-3391 - StatelessSession: one-to-one detail-object is always null
** Improvement
* #1646 Add a link to release notes in NuGet package
* #1639 Speedup access to SQL Server on Linux
* #1624 Add missing ids on documentation sections
* #1619 Document "entity join" and "entity projection"
** Task
* #1649 Release 5.1.1
* #1622 Update cache documentation
* #1621 Upgrade Async Generator to a version compatible with VS 15.6.3
Build 5.1.0
=============================
Release notes - NHibernate - Version 5.1.0
** Highlights
* NHibernate has gained two new target frameworks: .Net Core 2.0 and .Net Standard 2.0. NHibernate NuGet package
provides them, along with the .Net framework 4.6.1 build.
For these new frameworks, some additional specificities or limitations apply:
* Binary serialization is not supported - the user shall implement serialization surrogates for System.Type,
FieldInfo, PropertyInfo, MethodInfo, ConstructorInfo, Delegate, etc.
* SqlClient, Odbc, Oledb drivers are converted to ReflectionBasedDriver to avoid the extra dependencies.
* CallSessionContext uses a static AsyncLocal field to mimic the CallContext behavior.
* System transactions (transaction scopes) are untested, due to the lack of data providers supporting them.
* 114 issues were resolved in this release.
##### Possible Breaking Changes #####
* Since Ingres9Dialect is now supporting sequences, the enhanced-sequence identifier generator will default to
using a sequence instead of a table. Revert to previous behavior by using its force_table_use parameter.
* Some overridable methods of the Dialect base class and of MsSql2000Dialect have been obsoleted in favor of
new methods. Dialects implementors need to override the replacing methods if they were overriding the
obsolete ones, which are:
* Dialect.GetIfNotExistsCreateConstraint(Table table, string name), replaced by
GetIfNotExistsCreateConstraint(string catalog, string schema, string table, string name).
* Dialect.GetIfNotExistsCreateConstraintEnd(Table table, string name), replaced by
GetIfNotExistsCreateConstraintEnd(string catalog, string schema, string table, string name).
* Dialect.GetIfExistsDropConstraint(Table table, string name), replaced by
GetIfExistsDropConstraint(string catalog, string schema, string table, string name).
* Dialect.GetIfExistsDropConstraintEnd(Table table, string name), replaced by
GetIfExistsDropConstraintEnd(string catalog, string schema, string table, string name).
* MsSql2000Dialect.GetSelectExistingObject(string name, Table table), replaced by
GetSelectExistingObject(string catalog, string schema, string table, string name).
** Bug
* #1606 NHibernate 5 precision maximum on decimal reduced vs. NHibernate 4
* #1605 MySql batcher may attempt initiating a new batch without closing open reader first.
* #1604 MySql batcher disables db exception translation
* #1602 Preserve original snapshot mode.
* #1594 AsyncLocal leak in SystemTransactionContext
* #1587 Prevent substitute garbage collection
* #1565 For update with outer join fails with PostgreSQL
* #1562 Fix round registration
* #1559 Deep removal of Fetch result operators when Any is used
* #1556 Linq query with "Contains" on persistent collection fails
* #1551 Assert for a null reference in a flaky test.
* #1536 Avoid a null reference exception in ExpressionKeyVisitor
* #1535 Fix some HQL functions registration
* #1534 Fixed entity name retrieval for EntityProjection
* #1526 ExpressionKeyVisitor does not produce unique keys for anonymous types coming from different assemblies
* #1514 Fix exceptions serialization
* #1511 Test Unicode string.
* #1509 Add missing NHibernateLogLevel.Info in example web project
* #1507 NH-3119 - fix test not supporting optimization
* #1506 SQLite is bugged with distributed transactions: disable distributed tests
* #1505 Chaining scopes with ODBC is bugged: disabling the test.
* #1501 Fix NH-3023 test
* #1496 Fix ManyToOneType.IsModified to handle both object instance and identifier passed to the parameter “old”.
* #1491 Forgotten async generation for #1487
* #1486 Fix IsModified so that a null equates empty components when using select-before-update.
* #1484 Fix default types
* #1478 Exception when using envers with the latest logging changes
* #1476 Fix GetQueryCache storing two different caches.
* #1468 Comparison with DateTime? produces wrong SQL
* #1463 Fix a null reference case in session context
* #1454 Fix ProxyFactory cache
* #1445 Upgrade AsyncGenerator to 0.6.2 and regenerate.
* #1442 Unable to use an entity with a `FieldInterceptor` property and a lazy loaded property
* #1436 StackOverflowException when merging an entity with a lazy property
* #1434 Replace remaining SetOptions with WithOptions
* #1385 SecondLevelCache CreateSQLQuery().UniqueResult<int>() throws Exception Specified cast is not valid.
* #1372 NH-3982 - Simple query with Cacheable, Fetch and SingleOrDefault throws exception (regression from 3.3.0)
* #1371 NH-3898 - Configuring a property with generated="insert" turns "Property.IsUpdatable" into"false" even using update="true" in the xml mapping file.
* #1363 NH-2500 - NH 3.0 Linq provider uses query parameters from first call in subsequent calls.
* #1335 NH-3787 - Decimal truncation in Linq ternary expression
* #1330 NH-3673 - Closure variable values locked in from expressions in NHibernate LINQ provider
* #1226 NH-2534 - Join-fetching a many-to-one with property-ref results in select n+1 problem
* #1196 NH-4087 - Decimal truncation occurs after 5 digits
* #1119 NH-3084 - Class NHibernate.Loader.Loader logs SQL statement on INFO level
* #1052 NH-3976 - Inconsistent Decimal/NHibernateUtil.Currency handling causing runtime error when using Oracle.ManagedDataAccess
* #987 NH-1509 - MsSql2000Dialect does not use default schema when creating "if exists" statement
* #448 NH-1285 - Drop/Create script with default_schema/default_catalog fix(SqlServer)
** New Feature
* #1588 Add a generic batcher for insert/update/delete statements, usable with PostgreSQL and others
* #1545 Support to join not associated entities in Criteria (aka Entity Join)
* #1451 New StaticProxyFactoryFactory
* #1403 Add timeouts support to MultiCriteria
* #1377 Logging refactoring
* #954 NH-3807 - Support for .NET Core 2.0
* #948 NH-3435 - Ability to select entities in Criteria projections
* #910 NH-3606 - Open a stateless session from a session
* #908 NH-3470 - Allow Linq Query to load entities as read-only
** Improvement
* #1600 Set MySqlClientBatchingBatcher as a default batcher for MySqlDataDriver
* #1597 Add support for single-argument truncate to dialects that do not support it natively
* #1569 Modernize test example
* #1567 Avoid Trim().Length as empty check and ToLowerInvariant() in string comparison
* #1561 NAnt refactoring
* #1558 Improved collection batch fetching
* #1557 Aggregate named queries validation exceptions.
* #1555 Catch practices: avoid losing catched exception information.
* #1552 Obsolete UnmodifiableDictionary
* #1549 Remove an override which was doing the same thing as the base
* #1548 Add a missing short circuit in query parameter expansion.
* #1547 Double query translation
* #1546 Remove a redundant argument in Linq provider ExecuteQuery.
* #1543 Various string manipulation optimizations
* #1541 Cache subclass entity aliases in Loader
* #1537 Avoid unnecessary persister lookup in Loader
* #1529 Lazy mapping schema loading
* #1521 Enable warning as error for all projects and configurations
* #1519 Reuse SchemaExport in CreateSchema/DropSchema in tests
* #1515 Make NHibernateUtil.Initialize / IsInitialized better reusable for sub-projects like Envers
* #1504 More reliable SQLite handling in tests.
* #1502 Upgrade Iesi to 4.0.3 in order to use a release assembly
* #1498 Cease throwing bare Exception
* #1494 Update to Oracle installation instructions.
* #1490 Optimize empty arrays usages
* #1483 Clean-up of TypeFactory
* #1482 Refactored DefaultEntityAliases to avoid unnecessary calculations
* #1477 Reuse the same generic EmptyMapClass instance across the project
* #1475 Document expiration constraint on UpdateTimestampsCache region.
* #1467 Reduce the number of calls to UpdateTimestampsCache
* #1466 Obsolete EqualsHelper
* #1465 Obsolete EnumerableExtensions
* #1464 Obsolete ISessionImplementor.Initialize method
* #1449 Document IsDirty potential side effects
* #1441 Normalize TargetInvocationException unwrapping
* #1417 Table counter for aliases should be stable
* #1412 Store Linq query options in a query provider instead of a queryable
* #1391 Performance regression in SessionIdLoggingContext
* #843 NH-3879 - SequenceHiLoGenerator Jumps 1 number each lo > maxLo
* #842 NH-3869 - Add a way of adding comments into LINQ queries
* #837 NH-3804 - Register CHR/CHAR, NCHAR, UNICODE, and ASCII standard functions to the dialect(s)
* #831 NH-3515 - Support for Decimal.Round, Decimal.Ceiling, Decimal.Floor and other static methods of Decimal class
* #768 NH-3921 - Support sequences in Ingres9Dialect
* #769 NH-3922 - The various timeout methods should indicate time unit
** Task
* #1610 Move MsSql constants from driver to dialect.
* #1608 Missing Async test for GH1594
* #1603 Forgotten async generation of truncate test
* #1598 Upgrade IESI to 4.0.4 for having a bumped file version.
* #1589 Add framework info to example web project and enable .NET Core.
* #1574 Fix encoding in NorthwindDbCreator.cs
* #1563 Generate Async test for deep removal of fetch.
* #1527 Adjust ignore rules for not ignoring DebugHelpers folder and contents
* #1525 5.1.0 release
* #1524 Reduce breaking changes due to Ingres9 sequence support
* #1518 Upgrade to AsyncGenerator 0.8.1
* #1512 Upgrade to NUnit 3.9
* #1474 Upgrade AsyncGenerator to 0.7.0
** Tests
* #1539 Add more tests for constants in LINQ queries
As part of releasing 5.1.0, a missing 5.0.0 possible breaking change has been added about inequality semantic in LINQ
queries. See 5.0.0 possible breaking changes.
Build 5.0.6
=============================
Release notes - NHibernate - Version 5.0.6
** Bug
* #1672 Generated async methods do not correctly propagate OperationCanceledException
* #1355 NH-3928 - Random invalid SQL generated when using bitwise operators
** Task
* #1686 Release 5.0.6
Build 5.0.5
=============================
Release notes - NHibernate - Version 5.0.5
** Bug
* #1665 Have IFutureEnumerable.GetEnumerable executing immediatly the query
Build 5.0.4
=============================
Release notes - NHibernate - Version 5.0.4
** Bug
* #1658 Add missing cache setting
Build 5.0.3
=============================
Release notes - NHibernate - Version 5.0.3
** Bug
* #1462 Fix disposing SessionIdLoggingContext if CheckAndUpdateSessionStatus is failed
Build 5.0.2
=============================
Release notes - NHibernate - Version 5.0.2
** Bug
* #1456 NH-4052 - Add missing serializable implementation
* #1455 Reduces check session and set context id redundant calls
* #1453 Eliminate unnecessary AsyncLocal allocation if SessionId isn't changed
** Task
* #1457 Release 5.0.2
As part of releasing 5.0.2, a missing 5.0.0 possible breaking change has been added about Dialects requiring now
to be configured. See 5.0.0 possible breaking changes.
Build 5.0.1
=============================
Release notes - NHibernate - Version 5.0.1
** Bug
* #1428 Insert underscore in combined parameter name
* #1424 Bad wording and example fixes in cache documentation.
* #1420 Fix #1419 - ISession.IsDirty() shouldn't throw exception for transient many-to-one object in a session
* #1419 ISession.IsDirty() shouldn't throw exception for transient many-to-one object in a session
* #1418 Column.GetAlias should account for other suffixes
* #1415 Correct MaxAliasLength for various dialects
* #1393 Fix Linq Future aggregates failures, fixes #1387
* #1389 Add support for out/ref Nullable parameters of proxied methods
* #1387 Linq Sum() with ToFutureValue fails
* #1384 Fix a column spec causing missing col in pdf, fix a text overflow
* #1380 #750 - AliasToBean failure, test case and fix
* #1378 Fix #1362 - Running Unit tests against SQLite fails on datetime/UTC
* #1362 NH-4093 - Running Unit tests against SQLite fails on numerous (22) datetime/UTC related tests.
* #1357 NH-3983 - ToFuture throws ArgumentException at CreateCombinedQueryParameters
* #1179 NH-3840 - Wrong documentation of "cascade" in 5.1.11 (many-to-one)
* #1165 NH-3554 - Docs - bidirectional, indexed collections
* #983 Fix forgotten CDATA closure.
* #879 NH-4006 - Provide a correct MaxAliasLength for various dialects
* #750 Transformers.AliasToBean: Value cannot be null. Parameter name: key
* #712 NH-4092 - AsyncGenerator creates unused private static event handler in SQLite20Driver
** Improvement
* #1410 Remove unused code in build scripts
* #1404 Use MsBuild for packing .nupkg files
* #1401 Clean up db tests dependencies
* #1395 Documentation fixes
* #1386 Lack of custom logging documentation
* #1382 Jira to GitHub: change issue naming in tests
* #1379 Documentation fixes
* #982 Back port doc fixes
* #824 NH-3208 - Document all possible settings in hibernate.cfg
* #823 NH-3179 - Documentation should note that OnDelete should set IsSaved to false in chapter 24.1
* #788 NH-1947 - Undocumented attributes on sql-query element
* #713 Switch to GitHub issues
* #711 Switch doc generation to UTF-8.
** Task
* #1431 Release 5.0.1
* #1405 Remove unused and broken NHibernate.Setup WiX project
Build 5.0.0
=============================
** Highlights
* IO bound methods have gained an async counterpart. Not intended for parallelism, make sure to await each
call before further interacting with a session and its queries.
* Strongly typed DML operation (insert/update/delete) are now available as Linq extensions on queryables.
* Entities collections can be queried with .AsQueryable() Linq extension without being fully loaded.
* Reference documentation has been curated and completed, notably with a Linq section.
http://nhibernate.info/doc/nhibernate-reference/index.html
** Known BREAKING CHANGES from NH4.1.1.GA to 5.0.0
NHibernate now targets .Net 4.6.1.
Remotion.Linq and Antlr3 libraries are no more merged in the NHibernate library,
and must be deployed along NHibernate library. (NuGet will reference them.)
Classes and members which were flagged as obsolete in the NHibernate 4.x series have been dropped.
Prior to upgrading, fix any obsolete warning according to its message. See NH-4075 and NH-3684 for a list.
##### Possible Breaking Changes #####
* All members exposing some System.Data types have been changed for the corresponding System.Data.Common
types. (IDbCommand => DbCommand, ...)
* The Date NHibernate type will no more replace by null values below its base value (which was year 1753).
Its base value is now DateTime.MinValue. Its configuration parameter is obsolete.
* NHibernate type DateTimeType, which is the default for a .Net DateTime, does no longer cut fractional
seconds. Use DateTimeNoMsType if you wish to have fractional seconds cut. It applies to its Local/Utc
counterparts too.
* LocalDateTimeType and UtcDateTimeType do no more accept being set with a value having a non-matching kind,
they throw instead.
* DbTimestamp will now round the retrieved value according to Dialect.TimestampResolutionInTicks.
* When an object typed property is mapped to a NHibernate timestamp, setting an invalid object in the
property will now throw at flush instead of replacing it with DateTime.Now.
* Decimal type registration now correctly handles maximal precision. For most dialects, it is 28, matching
the .Net limit. Values in mappings above maximal precision will be reduced to maximal precision.
* Default cast types do no more resolve string to 255 length and decimal to its default precision/scale for
the dialect. They resolve to 4000 length string and (28, 10) precision/scale decimals by default, and are
trimmed down according to dialect. Those defaults can be overridden with query.default_cast_length,
query.default_cast_precision and query.default_cast_scale settings.
* Future queries with data provider not actually supporting them (not supporting mutliple queries in a single
SQL command) are no more immediately executed at the .Future call. They are executed only when directly
enumerated or when their IFutureEnumerable.GetEnumerable method is called. (This aligns them with the behavior
of FutureValue.)
* Dialects are now configurable. If you instantiate a dialect directly, make sure you call its Configure
method, with as argument the properties of a NHibernate Configuration object. You may use instead
Dialect.GetDialect methods, which configure the dialect before returning it.
* Transaction scopes handling has undergone a major rework. See NH-4011 for full details.
** More transaction promotion to distributed may occur if you use the "flush on commit" feature with
transaction scopes. Explicitly flush your session instead. Ensure it does not occur by disabling
transaction.use_connection_on_system_events setting.
** After transaction events no more allow using the connection when they are raised from a scope
completion.
** Connection enlistment in an ambient transaction is now enforced by NHibernate by default.
** The connection releasing is no more directly triggered by a scope completion, but by later
interactions with the session.
* AdoNetWithDistributedTransactionFactory has been renamed AdoNetWithSystemTransactionFactory.
* Subcriteria.UniqueResult<T> for value types now return default(T) when result is null, as was
already doing CriteriaImpl.UniqueResult<T>.
* AliasToBeanResultTransformer property/field resolution logic has changed for supporting members
which names differ only by case. See NH-3693 last comments for details.
* Linq inequality implementation has been changed for supporting null, meaning that a "a != b" expression
will now be considered matching if one side is null, while previously due to SQL null semantic it was
considered non-matching. See NH-3100.
* Linq extension methods marked with attribute LinqExtensionMethod will no more be evaluated
in-memory prior to query execution when they do not depend on query results, but will always be
translated to their corresponding SQL call. This can be changed with a parameter of the attribute.
* Linq Query methods are now native members of ISession and IStatelessSession instead of being
extension methods.
* Linq provider now use Remotion.Linq v2, which may break Linq provider extensions, mainly due to names
changes. See https://github.com/nhibernate/nhibernate-core/pull/568 changes to test files for examples.
* NHibernate Linq internals have undergone some minor changes which may break custom Linq providers due
to method signature changes and additional methods to implement.
* IMapping interface has an additional Dialect member. ISessionFactoryImplementor has lost it, since it
gains it back through IMapping.
* IDriver.ExpandQueryParameters and DriverBase.CloneParameter take an additional argument.
* NullableType, its descendent (notably all PrimitiveType) and IUserType value getters and setters now
take the session as an argument. This should mainly impact custom types implementors.
* EmitUtil is now internal and has been cleaned of unused members.
* ContraintOrderedTableKeyColumnClosure has been renamed ConstraintOrderedTableKeyColumnClosure.
* enabledFilter parameter has been removed from IProjection.ToSqlString and ICriterion.ToSqlString methods.
* Proxy factory and proxy cache now use TypeInfo instead of System.Type. This should be transparent for
most users.
* Exceptions which were based on ApplicationException are now based on Exception: HibernateException,
ParserException and AssertionFailure. The logger factory which could throw a bare ApplicationException
now throws an InstantiationException instead.
* ThreadSafeDictionary class has been removed. Use System.Collections.Concurrent.ConcurrentDictionary
instead.
* Entity mode switching capability, which had never been fully implemented, is dropped.
* BytecodeProviderImpl, intended for .Net Framework 1 and broken, is dropped.
* Sessions concrete classes constructors have been changed. (It is not expected for them to be used
directly.)
* Obsolete setting interceptors.beforetransactioncompletion_ignore_exceptions is dropped.
* SQL Server 2008+ dialects now use datetime2 instead of datetime for all date-time types, including
timestamp. This can be reverted with sql_types.keep_datetime setting.
* SQL Server 2008+ timestamp resolution is now 100ns in accordance with datetime2 capabilities, down from
10ms previously. This can be reverted with sql_types.keep_datetime setting.
* Oracle 9g+ dialects now use timestamp(7) for all date time types, instead of timestamp(4).
* Oracle 9g+ timestamp resolution is now 100ns in accordance with timestamp(7) capabilities, down from
100µs previously.
* Oracle: Hbm2dll will no-more choose N- prefixed types for typing Unicode string columns by default.
This can be changed with oracle.use_n_prefixed_types_for_unicode setting, which will furthermore
control DbCommand parameters typing accordingly. See NH-4062.
* SqlServerCe: the id generator "native" will now resolve as table-hilo instead of identity.
* Firebird: timestamp resolution is now 1ms.
* PostgreSQL: if Npgsql v3 or later is used, time DbParameters will be fetched as TimeSpan instead of
DateTime.
* DB2 & Oracle lite: decimal type registration was hardcoding precision as 19 and was using length as
scale. It now uses precision and scale from mapping when specified, and disregards length.
* Ingres & Sybase ASA: decimal type registration was hardcoding precision as 18 and was using length as
scale. It now uses precision and scale from mapping when specified, and disregards length.
* ODBC: String parameter length will no more be specified by the OdbcDriver.
Release notes - NHibernate - Version 5.0.0
** Sub-task
* [NH-3956] - Native SQL query plan may get wrong plan
* [NH-3957] - Second level query cache may yields wrong cache entry
* [NH-4001] - Remove ThreadSafeDictionary
** Bug
* [NH-926] - Identity insert fails with SQL Ce dialect and aggressive connection release mode.
* [NH-1752] - NHibernate Date type converts to NULL
* [NH-1904] - Protected properties and public properties cannot have the same name with different case
* [NH-2029] - filter-def's use-many-to-one=false should take ON into consideration
* [NH-2145] - AssertionFailure exception at ISession.Save
* [NH-2176] - Consecutive TransactionScopes cannot be used in same NHibernate session
* [NH-2238] - "DTC transaction prepare phase failed" when UPDATE:ing in a promoted TransactionScope
* [NH-2241] - Batch Insert using stateless session when using second level cache throws exception when unable to determine transient status
* [NH-2928] - Connections can only be closed after the Transaction is completed
* [NH-3023] - Deadlocks may cause connection pool corruption when in a distributed transaction
* [NH-3078] - TimeAsTimeSpanType issue when using Sybase Advantage Database
* [NH-3100] - Problem in use if condition for nullable boolean in linq to NHibernate
* [NH-3114] - Collection inside Component cannot be mapped to a different table
* [NH-3227] - InvalidOperationException in AbstractBatcher when distributed transaction is aborted
* [NH-3247] - Char value gets 'cached' in Where-queries
* [NH-3374] - Session.Merge throws InvalidCastException when using a Lazy bytes[] property
* [NH-3600] - ISession.Save returns wrong Id
* [NH-3665] - FirstOrDefault() broken since 3.3.4 and 3.4.0
* [NH-3693] - AliasToBeanResultTransformerFixture fails under Firebird
* [NH-3755] - Proxy exception for multiple joined-subclass
* [NH-3757] - Dynamic entity mapped with entity-name cannot have a component of a fixed class
* [NH-3793] - Attribute entity-name on <key-many-to-one> is ignored, causing mapping exception
* [NH-3845] - OfType fails with polymorphism
* [NH-3850] - .Count(), .Any() and other aggregates return only first result on polymorphic queries
* [NH-3885] - ThreadSafeDictionary is not threadsafe
* [NH-3889] - Coalesce on entity in sub-select causes incorrect SQL
* [NH-3895] - Problem with DateTime fractional seconds on ODBC for MS SQL Server
* [NH-3911] - Reflection Optimizer tries to cast values to getter type in setter
* [NH-3913] - Component has bag of child components. Child property mapping ignored
* [NH-3931] - Invalid order of child inserts when using TPH inheritance
* [NH-3946] - Linq where "is base class" doesn't get subclasses
* [NH-3948] - CheckAndUpdateSessionStatus() called twice in CreateFilter method inside SessionImpl class
* [NH-3950] - FutureValue fails on Linq queries defining a PostExecuteTransformer
* [NH-3954] - Dynamic proxy cache may yield a wrong proxy
* [NH-3955] - Unreliable Equals implementation
* [NH-3961] - Invalid date parameter format with nullables and MappedAs
* [NH-3966] - Missing command set dispose in batchers
* [NH-3968] - Distributed transaction cannot be committed because AdoNetWithDistributedTransactionFactory tries to write data by using locked sqlConnection
* [NH-3969] - Firebird: TimestampResolutionInTicks should be 1ms
* [NH-3977] - Thread safety weaknesses of MapBasedSessionContext
* [NH-3981] - CollectionHelper.DictionaryEquals throws
* [NH-3985] - ObjectDisposedException is thrown when using a child session after having previously disposed of another child session.
* [NH-3998] - SqlServer CE: "The column aliases must be unique" exception is thrown in some tests
* [NH-4013] - SqlClientBatchingBatcher CloseCommands contract violated
* [NH-4022] - MsSql2012Dialect: Invalid drop sequence statement
* [NH-4024] - ODBC failures with time
* [NH-4027] - Missing disposals of enumerators
* [NH-4035] - Teardown failure should not prevent cleanup
* [NH-4038] - Mapping a TimeSpan in a collection component mapping maps as a BIGINT
* [NH-4046] - Default length too short for variable length types with SAP Anywhere / ASE
* [NH-4077] - Possible race condition in ActionQueue.ExecuteActions
* [NH-4083] - ODBC nvarchar parameter corruption
* [NH-4084] - DbTimestamp cause stale update exception
* [NH-4086] - TimeType may lose fractional seconds
* [NH-4088] - Dialect.GetCastTypeName is buggy
* [NH-4090] - Prepare SQL fails with time parameters and SQL Server 2008+
* [NH-4091] - SQL Server CE allocates too much memory with blob and sql prepare
** New Feature
* [NH-1530] - Add support for XmlDocType and XDocType for Oracle
* [NH-2319] - IQueryable support for persistent collections
* [NH-3488] - Strongly Typed Updates and Deletes
* [NH-3771] - Implement setting to enable Batch Update with Optimistic Locking control
* [NH-3905] - Support async: Blocking IO leads to ThreadPool starvation and limits scalability
* [NH-3934] - Add methods WhereNot(ICriterion) and AndNot(ICriterion) in QueryOver
* [NH-3951] - Support .All() result operator
* [NH-3996] - Postgres: add support for XmlDocType and XDocType
* [NH-4009] - Allow marking a Linq extension as db only
* [NH-4017] - Handle Time parameter conversion for newer Npgsql
* [NH-4018] - Port AutoJoinTransaction feature
* [NH-4028] - Support inconclusive tests in result comparison
* [NH-4031] - Add an AsyncLocalSessionContext
* [NH-4032] - Supports multiple factories with ThreadStaticSessionContext
* [NH-4062] - Properly handle Oracle Unicode support dual model
** Task
* [NH-3683] - Fix Compilation Warnings
* [NH-3958] - Reference documentation: missing types
* [NH-3959] - Fix documentation typos
* [NH-3999] - Document effect of quoted identifier on case sensitivity
* [NH-4000] - Release 5.0
* [NH-4004] - Restrict tests running on SQL CE
* [NH-4051] - Replace System.Linq.Dynamic with System.Linq.Dynamic.Core in tests
* [NH-4057] - Fix tests for MySql
* [NH-4058] - Fix Oracle managed failing tests
* [NH-4063] - Fix ODBC failing tests
** Improvement
* [NH-1851] - Mapping a TimeSpan as TimeAsTimeSpan for MySQL
* [NH-2444] - Document linq provider
* [NH-3094] - Linq does not support unary plus and unary minus operators
* [NH-3370] - Remove warning about "NHibernate.Type.CustomType -- the custom type * is not serializable"
* [NH-3386] - Linq OrderBy NewID()
* [NH-3431] - Replace System.Data with System.Data.Common
* [NH-3578] - Subcriteria.UniqueResult<T> for value types should return default(T), same as CriteriaImpl.UniqueResult<T> when result is null
* [NH-3669] - Query should be instance method of ISession
* [NH-3723] - Some tests are failing when log level set to DEBUG
* [NH-3744] - Fixed spelling of ContraintOrderedTableKeyColumnClosure method
* [NH-3750] - Use NuGet to refer to Remotion.Linq (unmerge ReMotion.Linq)
* [NH-3877] - Target .NET 4.6.1
* [NH-3900] - Upgrade to Nunit 3.x
* [NH-3919] - Clean up and harmonize datetime types with regards to different dialects
* [NH-3927] - Switch to SemVer version scheme
* [NH-3932] - Merge() may fire unnecessary updates if collection and version mapping exists
* [NH-3943] - Use NuGet to reference packages instead of local copies
* [NH-3944] - Upgrade to ReLinq 2
* [NH-3945] - Update to Antlr 3.5.1
* [NH-3952] - Cleanup EnumerableHelper usage
* [NH-3962] - Build with MSBuild Tools 2017 (15)
* [NH-3963] - More explicit error on MappedAs invalid usage.
* [NH-3964] - Refactor reflection patterns
* [NH-3970] - TestCase base class: avoid hiding test failure on tear-down
* [NH-3973] - Remove enabledFilter parameter from IProjection.ToSqlString and ICriterion.ToSqlString methods
* [NH-3975] - Synchronize some features dialect support properties
* [NH-3978] - Extract IDatabaseMetadata from DatabaseMetadata
* [NH-3987] - Re-implement NhQueryable options
* [NH-3988] - Replace ApplicationException base class with just Exception
* [NH-3990] - Upgrade to VS2017 Project structure
* [NH-3993] - Component Element Customizer Missing ability to map non-public parents and composite element relations
* [NH-3997] - SqlServer CE: Make native generator to be TableHiLoGenerator
* [NH-4003] - Refactor session constructor
* [NH-4010] - Visual Studio launcher still launches 2015
* [NH-4014] - Update SQLite assembly for tests
* [NH-4015] - Update Npgsql driver and enable DTC for it in tests
* [NH-4019] - Pass assembly into log4net functions
* [NH-4020] - Use TypeBuilder.CreateTypeInfo()
* [NH-4021] - Track all opened session in tests
* [NH-4023] - Pass ISessionImplementor to all value setters and getters of nullable types
* [NH-4026] - Update Firebird driver and use server in tests
* [NH-4030] - Cleanup and xml doc of Linq Future extension
* [NH-4033] - Update MySql connector used in tests
* [NH-4034] - Flush all sessions participating in a transaction
* [NH-4043] - Complete keyword registration needs done in dialects.
* [NH-4049] - EmitUtil can be cleaned up
* [NH-4050] - Use Task.Run instead of BeginInvoke in tests
* [NH-4052] - Collect schema validation exceptions
* [NH-4064] - Unmerge Antrl3.Runtime
* [NH-4073] - Replace NHibernate.Web.Example with modern version
* [NH-4076] - Do not resurrect session
** Remove Feature
* [NH-3684] - Remove <Time>Part Extension Methods of QueryOver
* [NH-3700] - Remove CodeDom BytecodeProviderImpl
* [NH-3722] - Remove entity mode switching capability
* [NH-4075] - Remove code obsolete in 4.x
** Meta Issue
* [NH-4011] - Fix transaction scopes handling
Build 4.1.2.GA
=============================
Release notes - NHibernate - Version 4.1.2.GA
** Bug
* #1355 NH-3928 - Random invalid SQL generated when using bitwise operators
Build 4.1.1.GA
=============================
##### Notes #####
The [NH-3904] has been reverted in favor of [NH-2401]: users now required to explicitly specify
custom user type via MappedAs method if they want to use IUserType/ICompositeUserType type
parameters in Linq queries, or implement generators the way they take the types into account.
** Sub-task
* [NH-3940] - Revert NH-3904
** Bug
* [NH-3929] - ExpressionParameterVisitor selects wrong CustomType for ConstantExpression (Linq)
* [NH-3941] - MappedAs() does not work
Build 4.1.0.GA
=============================
##### Possible Breaking Changes Since 4.0 #####
Proxies for classes that used lazy fields (not collections)
would have any exceptions from the entity wrapped in TargetInvocationException. This
wrapping exception have now been removed. Where relevant, you should instead catch
the original exception type you throw.
For LINQ queries, the startAt parameter and the return value for string.IndexOf() are
now correctly translated from .Net's 0-based indexing to SQL's 1-based indexing. LINQ
queries that are written to expect SQL semantics for IndexOf() will likely need to be
adjusted (NH-3846, NH-3901).
Example: A LINQ query should now use 'x=>x.Name.IndexOf("a") == -1' to pick objects where
the name doesn't contain the letter "a".
** Bug
* [NH-3885] - ThreadSafeDictionary is not threadsafe
Build 4.1.0.CR1
=============================
** Bug
* [NH-2038] - No substring length check in RemoveAsAliasesFromSql
* [NH-2127] - NHibernate cannot convert from decimal to int64 during OutputParamReturningDelegate.ExecuteAndExtract
* [NH-2167] - Aggregate function GroupProperty mixing named and positional variables
* [NH-2738] - Exception thrown when mapping contains empty enum
* [NH-2839] - Linq query with boolean implemeted as IUserType fails
* [NH-2930] - Mapping by code does not support multiple levels of abstract subclasses, nor does the abstract=true tag work on subclasses below the first level subclass
* [NH-2931] - Registering mappings in mapping by code does not process classes accordingly to inheritance path
* [NH-3015] - Join fetch with Stateless Session returns duplicate entities
* [NH-3035] - Alias in HQL Order By Clause is Not Replaced
* [NH-3046] - Potentially serious memory leak with regards to NHibernate.Action.EntityAction.BeforeTransactionCompletionProcessDelegate
* [NH-3048] - Mapping-by-Code does not allow UnsavedValue in ComponentAsId mapping
* [NH-3075] - NullReferenceException when using Fetch/FetchMany
* [NH-3252] - AnsiString larger than 8000 doesn't work with Sql Server
* [NH-3372] - Support generated columns in combination with explicit loader
* [NH-3414] - Queries with sub-query in ThenBy fail
* [NH-3453] - InvalidCastException from FindDirty on many-to-one association with property-ref to composite-id class
* [NH-3454] - AdoNetWithDistributedTransactionFactory doesn't unhook event handler which may prevent garbage collection
* [NH-3474] - GroupBy constant producing wrong SQL
* [NH-3480] - <set> mapping using a property-ref as the link to its children can raise an InvalidCastException when loading
* [NH-3487] - Deserializing a session can raise an NHibernateException - No tupilizer found for entity-mode [Poco]
* [NH-3500] - Throwing exception from within a proxied method does not unwrap TargetInvocationException
* [NH-3512] - Changes in derived object doesn't update version
* [NH-3518] - If prepare_sql is true, columns of XML type won't work
* [NH-3527] - UnionSubclassMapper should mark an abstract type as abstract in the generated HbmMapping
* [NH-3564] - TimestampType does not work with 2nd level cache
* [NH-3567] - Under the flushmode Auto, Query with subquery failed to flush if there are changes among the entities addressed by the sub-query
* [NH-3583] - Autoflush doesn't work inside TransactionScope
* [NH-3609] - Using Projections.Conditional inside of Projections.Count and Projections.Avg generates invalid sql.
* [NH-3634] - Wrong syntax for comparing component with nullable properties(columnValue = NULL)
* [NH-3666] - Setting native sql query cachable causes ArgumentNullException in CacheableResultTransformer.
* [NH-3681] - NHibernate.HibernateException: Query Source could not be identified, when using join group and Sum()
* [NH-3706] - NHibernate.Transform.Transformers should be static class
* [NH-3727] - Criteria which use SubqueryProjection. Cannot be executed more than once. Second try throws exception.
* [NH-3741] - Many to Many mapping against interfaces fails (reverts to using ElementRelationMapper instead of ManyToManyRelationMapper)
* [NH-3743] - Fetch with GroupBy throws NullReferenceException
* [NH-3747] - Very weak support for predicates in Linq Aggregate functions
* [NH-3754] - Exception "System.ArgumentNullException" when using ICriteria with AliasToBeanResultTransformer and SecondLevelCache
* [NH-3762] - DateType should not try to set DbParameter.DbType column
* [NH-3767] - Wrong aliases when querying a table with the name starting with Select, From or As in Oracle
* [NH-3784] - Collection filtering via ISession.CreateFilter should not allow DML queries
* [NH-3785] - Collection filtering via ISession.CreateFilter incorrectly applies filter to nested subqueries
* [NH-3791] - Transaction with multiple inserts, fails when a column-name contains 'select' on Firebird database
* [NH-3797] - Computed GroupBys don't work if they have constants
* [NH-3800] - Cannot combine Left Outer Join with Aggregating Group By
* [NH-3801] - AddJoinsReWriter disassociates Select expressions and GroupBy key expressions
* [NH-3816] - Conditionals in Select are too permissive
* [NH-3817] - Merge fails randomly on a graph containing transient entities with multiple cascade paths
* [NH-3818] - Conditional expressions in LINQ Select
* [NH-3831] - NullableDictionary does not set _gotNullValue when using Add(TKey, TValue) method
* [NH-3842] - DateTimeOffsetType throws NotImplementedException() for DefaultValue.
* [NH-3844] - Left Outer Join with Aggregating Group By and Conditional Key Failure
* [NH-3874] - Evicting an object with a collection with logging enabled throws
* [NH-3891] - Not all overrides of ISerializable.GetObjectData set SecurityCritical
* [NH-3895] - Problem with DateTime fractional seconds on ODBC for MS SQL Server
* [NH-3897] - Use of Hashset Test framework's DebugConnectionProvider not thread-safe.
* [NH-3899] - Too long column alias - Column.GetAlias() doesn't correctly respect Dialect.MaxAliasLength
* [NH-3904] - Passing a user type instance as a constant parameter in a linq expression fails.
* [NH-3909] - Regression on join following refactoring of NH-3801
* [NH-3917] - SQLite Dialect does not specify any keywords except 'int'
* [NH-3912] - Batch operations with the same IBatcher instance fail on expect rows count after single failed operation (Oracle)
* [NH-3846] - Off-by-one error: LINQ to SQL of 'startIndex' (2nd) parameter - 'IndexOf()' to 'CharIndex()'
* [NH-3901] - IndexOf doesn't translate into 0-based index
* [NH-3918] - Select Expressions Cache Entities
** New Feature
* [NH-1262] - Cascade of "all-delete-orphan" not supported for one-to-one
* [NH-1452] - Join element doesn't support keys with property-refs
* [NH-2218] - Extension method Query<T> doesn't support entity names
* [NH-2611] - Allow injectable/inheritance of Linq query provider
* [NH-3495] - Implement Oracle 12c Dialect
* [NH-3499] - Allow query model visitor to be provided through the session factory
* [NH-3619] - Make default value of FlushMode configurable
** Task
* [NH-802] - Use msbuild instead of csc/vbc
* [NH-3725] - Remove SharpTestsEx
* [NH-3781] - Upgrade relinq to at least 1.13.177
* [NH-3875] - Build with MSBuild Tools 2015 (14)
* [NH-3890] - Update all support projects and tooling to .NET 4.0
** Improvement
* [NH-2053] - Extend the filter-def usage to subclasses
* [NH-2401] - Method for specifying IType of LINQ parameter
* [NH-2821] - Better finding log4net.dll
* [NH-2823] - Optimistic Locking in mapping by code
* [NH-2824] - Precision and scale for decimal id
* [NH-2887] - Tweak UriType to allow relative URIs to be supported.
* [NH-3110] - Support Polymorphism in mapping by code
* [NH-3198] - Have Mapping By Code Support Dynamic Component Inside Join
* [NH-3312] - QueryOver, static Alias
* [NH-3404] - Add missing standard Id Generators in Mapping By Code
* [NH-3452] - Need to support CHAR(length) type for identifiers
* [NH-3486] - Performance: For projections, identical metadata for rows is recalculated for every row
* [NH-3489] - GetEffectiveParameterLocations is slow with a large number of parameters
* [NH-3525] - Db2Dialect should issue FETCH FIRST N ROWS ONLY when there is no offset
* [NH-3630] - Bitwise operation support for dialects using internal/external functions
* [NH-3707] - Port HHH-6845 - Avoid repeated invocations of ReflectHelper.overridesEquals in proxy initializers
* [NH-3720] - Support Additional Convert Methods in LINQ Queries
* [NH-3726] - Support SqlMethods.Like() with escape character in LINQ
* [NH-3732] - Start the NUnit GUI with the .NET 4.0 runtime
* [NH-3759] - uuid.hex mapper issue
* [NH-3763] - Add Bitwise operations for Oracle
* [NH-3779] - Mapping by code does not allow to map structures as components
* [NH-3783] - Enable update ordering for improved batching
* [NH-3812] - GuidCombGenerator must use DateTime.UtcNow
* [NH-3856] - Improve performance of SqlClientSqlCommandSet
* [NH-3857] - Improve performance of MySqlClientSqlCommandSet
* [NH-3920] - Improve logging of SQL parameter types and values
* [NH-3811] - Consistent Unique Integer values per table
Build 4.0.4.GA
=============================
** Bug
* [NH-3795] - C# compiler "Roslyn" regression
Build 4.0.3.GA
=============================
** Bug
* [NH-2504] - Can't use Cacheable with Group By
* [NH-3457] - TemplatedViolatedConstraintNameExtracter.ExtractUsingTemplate calls Substring with wrong arguments
* [NH-3468] - InvalidCastException when deleting entities containing uninitialized lazy components
* [NH-3573] - Query cache statistics not updated when using MultiCriteria
* [NH-3731] - Unable to serialize session after modifying the index of entities in a list
Build 4.0.2.GA
=============================
** Bug
* [NH-2779] - Session.Get() can throw InvalidCastException when log-level is set to DEBUG
* [NH-2782] - Linq: selecting into a new array doesn't work
* [NH-2831] - NH cannot load mapping assembly from GAC
* [NH-3049] - Mapping by code to Field not working
* [NH-3222] - NHibernate Futures passes empty tuples to ResultSetTransformer
* [NH-3650] - ComponentAsId<T> used more than once, cache first mapping and produces subsequently a sql select wrong
* [NH-3709] - Fix Reference to One Shot Delete and Inverse Collections
* [NH-3710] - Use of SetLockMode with DetachedCriteria causes null reference exception
** Task
* [NH-3697] - Ignore Firebird in NHSpecificTest.NH1981
* [NH-3698] - NHSpecificTest.NH1989 fails for some drivers
Build 4.0.1.GA
=============================
** Bug
* [NH-3102] - Wrong mapping produced by Map
* [NH-3214] - PropertyContainerCustomizer.Bag() throws NullReferenceException when mapping a property of type IList
* [NH-3575] - DefaultReadOnly not working for Future() queries
* [NH-3656] - Firebird doesn't accept Currency as parameter type
* [NH-3667] - MappingByCode produce wrong table field name 'idx' in Dictionary<,> mappings
* [NH-3679] - SchemaExport.Create(false, false) does not write to file specified via SchemaExport.SetOutputFile
* [NH-3691] - All dialect checks in NHSpecificTest.NH1487.Fixture are broken
* [NH-3692] - TypedManyToOneTest is broken for Firebird
* [NH-3694] - Criteria or QueryOver with join to components collection does not return data. It worked in NH 3.3.
* [NH-3695] - NHSpecificTest.NH1845 fails for some Dialects
* [NH-3696] - Connection pooling + Multi threraded tests
* [NH-3701] - NHSpecificTest.NH2302 Fails under Firebird
** Improvement
* [NH-3604] - Map ByCode fails when property is protected (not public)
* [NH-3687] - Change Id mapping of TimesheetEntry from native to assigned
* [NH-3688] - Modify NHSpecificTest.NH1391 so that it doesn't depend on preknown id values
* [NH-3690] - Add LEFT function to Firebird
** Patch
* [NH-3383] - Fix for multiple objects of CascadeStyle in Memory that should be singleton
* [NH-3577] - Fix in SessionFactory.Statistics.LogSummary() method to show 0 milisecond as MaxQueryTime when no query was executed, instead of -922337203685477
** Task
* [NH-3085] - Document enhanced id generators
* [NH-3660] - Ignore Firebird in DtcFailuresFixture
* [NH-3689] - Ignore Firebird in NHSpecificTest.NH1171
Build 4.0.0.GA
=============================
** Known BREAKING CHANGES from NH3.3.3.GA to 4.0.0.GA
NHibernate now targets .Net 4.0. Many uses of set types from Iesi.Collections have
now been changed to use corresponding types from the BCL. The API for these types
are slightly different.
Support for persistent non-generic collections removed. Use the generic counterparts instead.
##### Possible Breaking Changes #####
* IDeleteEventListener, IEventSource: Use generic ISet<> instead of non-generic in method signatures.
* SqlString.Parts removed. Use SqlString.Count and SqlString.GetEnumerator().
* IPersistentCollection.GetSnapshot() now returns object instead of ICollection. The snapshot should be opaque to outside code.
* Removed IsDiscriminatorFormula, DiscriminatorFormula and GenerateSelectString from UnionSubclassEntityPersister class.
* Removed ManagedWebSessionContext. Any configuration files which use the "managed_web" session context should now use "web"
* SybaseASADialect removed: Use SybaseSQLAnywhere10Dialect instead.
* ASA10ClientDriver, ASAClientDriver and SQLiteDriver removed: Use SybaseSQLAnywhereDriver, SybaseAsaClientDriver, SQLite20Driver instead.
* Removed Classic HQL Parser.
* Removed IQueryTranslatorFactory2. It's methods were pulled up to IQueryTranslatorFactory. Method CreateQueryTranslators accepting string as first argument marked as Obsolete.
* IQueryExpression.Translate now has second boolean argument 'filter'
* Added several methods which accepts IQueryExpression to ISessionImplementor, which is duplicating methods which accepts string.
* Miss-spelled AdoNetWithDistrubtedTransactionFactory removed: Use AdoNetWithDistributedTransactionFactory instead
* HqlDistinctHolder removed: Use HqlExpressionSubTreeHolder instead
* DisableLogFormattedSql method removed: the default is disabled
* ISession.SaveOrUpdateCopy removed: Use Merge instead
* Oracle and MySQL: The atan2 and power functions now return double (instead of single) for consistency with other dialects.
* Removed FirebirdDriver. It was the same as FirebirdClientDriver since 3.2, and the latter have been the default since then.
* Removed bunch of unused methods on *Helper classes
* Static fields on NHibernateUtil are declared as their exact class
From NH4.0.0.Alpha1 to 4.0.0.Alpha2:
Fixed mapping by code behaviour when map child subclasses (see NH-3135 and NH-3269)
The constructor of AbstractComponentTuplizer now behaves like AbstractEntityTuplizer in the way
that it doesn't create the instantiator any more. Custom component tuplizers that derive
directly from AbstractComponentTuplizer need to add this line of code in their constructor:
instantiator = BuildInstantiator(component);
From NH4.0.0.Alpha2 to 4.0.0.CR1:
The interface IEnhancedProjection was removed and its methods moved to IProjection.
Two other overloads of the GetColumnAliases() methods was removed from IProjection.
* [NH-2290] Invalid hql parenthesis expansion in generated sql
Unary minus before parentheses in HQL lost the parentheses when translated
to SQL and therefore the wrong value was returned. This use of unary minus is now
implemented in the mathematically correct way.
** Bug
* [NH-3638] - Mapping-by-code is occasionally picking the wrong column name
* [NH-3654] - Internal access of PersistentGenericBag removed
** Improvement
* [NH-3415] - Add Overload to IGeneratorMapper.Params That Receives a Dictionary
* [NH-3657] - Map By Code - One to One Missing Class Action
** Patch
* [NH-3529] - Add linqtohql.generatorsregistry to nhibernate-configuration.xsd
Build 4.0.0.CR1
=============================
** Bug
* [NH-3455] - QueryOver + selecting a component + OrderBy = wrong OrderBy in SQL
* [NH-3581] - nhibernate.everything.sln doesn't compile
* [NH-3587] - Parameters within a select clause
* [NH-3620] - ORA-01483 when inserting two blobs and a date using the OracleManagedDataClientDriver
* [NH-3624] - broken insert statement with select
* [NH-3629] - Translation of string.IndexOf() in Linq is broken for firebird
* [NH-3641] - Missing Outer Join
* [NH-3642] - PostgreSQL: Support LINQ DateTime.Date in select clause
* [NH-3649] - Missing support for round() in SQLite and SQL Server CE dialects (affected criteria queries)
** Improvement
* [NH-3623] - Add FirebirdExceptionConverterExample
* [NH-3626] - avoid double parens around a select statement
* [NH-3627] - change some id mappings from native to assigned in linq tests
* [NH-3628] - add keyword "date" and function "date" to FirebirdDialect
* [NH-3647] - Support Math.Round() in QueryOver projections
** Task
* [NH-3251] - Update to antlr 3.5.0.2
* [NH-3644] - Merge IEnhancedProjection into IProjection
Build 4.0.0.Alpha2
=============================
** Known BREAKING CHANGES from NH4.0.0.Alpha1 to 4.0.0.Alpha2
Fixed mapping by code behaviour when map child subclasses (see NH-3135 and NH-3269)
The constructor of AbstractComponentTuplizer now behaves like AbstractEntityTuplizer in the way
that it doesn't create the instantiator any more. Custom component tuplizers that derive
directly from AbstractComponentTuplizer need to add this line of code in their constructor:
instantiator = BuildInstantiator(component);
** Bug
* [NH-2380] - Cannot perform distinct when selecting an anonymous type
* [NH-2486] - Distinct() extension method problem with Object Initialisers
* [NH-2655] - DbType.Double should be float(53) instead of DOUBLE PRECISION in the SQL-Severer2000 Dialect
* [NH-2692] - Using Any() on a collection of components results in invalid SQL: Column of parent ID is used instead of key column
* [NH-2861] - <filter> doesn't work in conjunction with <join>
* [NH-2865] - "Expression type 'NhSumExpression' is not supported by this SelectClauseVisitor."
* [NH-2961] - "Index was outside the bounds of the array" error when executing cached query for single result with distinct results transformer
* [NH-3135] - Collection of Components in BaseClass cannot be mapped to a different table
* [NH-3269] - UniqueKey on property of base class will affect all inherited class
* [NH-3392] - Add ability to expand subcollections with composites ids with WCF Data Services
* [NH-3417] - Nested projection of subcollection throws
* [NH-3423] - MemberInitExpression causing problem in HqlGeneratorExpressionTreeVisitor (WCF DS)
* [NH-3571] - Linq does not support dynamic components inside components
* [NH-3579] - Session leak in the Query Plan Cache
* [NH-3586] - Firebird Decimals
* [NH-3588] - Creating and dropping of Temporary Tables in an isolated transaction is broken
* [NH-3590] - Detached entity with set of primitives throws
* [NH-3591] - IncrementGenerator unnecessarily creates a new connection to the db
** Improvement
* [NH-1082] - Exceptions thrown in IInterceptor.BeforeTransactionCompletion should cause the transaction to be rolled back
* [NH-3041] - Expression-based PropertyRef missing in OneToOne mapping
* [NH-3072] - OneToManyPersister improvements
* [NH-3141] - Don't fetch id from proxy target
* [NH-3437] - Turn SqlMethods.Like into an extension method
** Patch
* [NH-3558] - Table check and enhanced id generators in Mapping By Code
* [NH-3559] - UnionSubclassEntityPersister does not quote column names
** Task
* [NH-3363] - Refactor Loader/Result Transformer interaction to match Hibernate
Build 4.0.0.Alpha1
=============================
** Known BREAKING CHANGES from NH3.3.3.GA to 4.0.0.Alpha1
NHibernate now targets .Net 4.0. Many uses of set types from Iesi.Collections have
now been changed to use corresponding types from the BCL. The API for these types
are slightly different.
Support for persistent non-generic collections removed. Use the generic counterparts instead.
##### Possible Breaking Changes #####
* IDeleteEventListener, IEventSource: Use generic ISet<> instead of non-generic in method signatures.
* SqlString.Parts removed. Use SqlString.Count and SqlString.GetEnumerator().
* IPersistentCollection.GetSnapshot() now returns object instead of ICollection. The snapshot should be opaque to outside code.
* Removed IsDiscriminatorFormula, DiscriminatorFormula and GenerateSelectString from UnionSubclassEntityPersister class.
* Removed ManagedWebSessionContext. Any configuration files which use the "managed_web" session context should now use "web"
* SybaseASADialect removed: Use SybaseSQLAnywhere10Dialect instead.
* ASA10ClientDriver, ASAClientDriver and SQLiteDriver removed: Use SybaseSQLAnywhereDriver, SybaseAsaClientDriver, SQLite20Driver instead.
* Removed Classic HQL Parser.
* Removed IQueryTranslatorFactory2. It's methods were pulled up to IQueryTranslatorFactory. Method CreateQueryTranslators accepting string as first argument marked as Obsolete.
* IQueryExpression.Translate now has second boolean argument 'filter'
* Added several methods which accepts IQueryExpression to ISessionImplementor, which is duplicating methods which accepts string.
* Miss-spelled AdoNetWithDistrubtedTransactionFactory removed: Use AdoNetWithDistributedTransactionFactory instead
* HqlDistinctHolder removed: Use HqlExpressionSubTreeHolder instead
* DisableLogFormattedSql method removed: the default is disabled
* ISession.SaveOrUpdateCopy removed: Use Merge instead
* Oracle and MySQL: The atan2 and power functions now return double (instead of single) for consistency with other dialects.
* Removed FirebirdDriver. It was the same as FirebirdClientDriver since 3.2, and the latter have been the default since then.
* Removed bunch of unused methods on *Helper classes
* Static fields on NHibernateUtil are declared as their exact class
** Sub-task
* [NH-3038] - Add Support for SQL Server 2012 Query Paging
* [NH-3098] - Pull code/history from nhibernate-core repository to new iesi.collections repository
* [NH-3099] - Remove Iesi.Collection-related code from nhibernate-core repository
* [NH-3163] - Remove internal use of non-generic ISet
* [NH-3165] - Remove support for non-generic ISet in mapped classes
** Bug
* [NH-2008] - Mapping <set> with HashSet<T> generates unecessary update on collection owner
* [NH-2033] - Composite-Id relationships (key-many-to-one) do not appear to be used in CreateCriteria
* [NH-2762] - Failed to use IGrouping<TKey, TElement>.Contains() from Lookup to make SQL IN statement
* [NH-2772] - Lazy-collection not loaded when a property is Lazy-loaded
* [NH-2819] - DefaultDynamicLazyFieldInterceptor does not handle generic methods correctly
* [NH-2852] - Linq ThenFetch fails on deep where clause.
* [NH-2897] - MultiQuery/ToFuture broken with Contains (in)