forked from nhibernate/nhibernate-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
releasenotes.txt
3213 lines (2790 loc) · 187 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 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)
* [NH-2915] - In Linq, Where clause is ignored if followed by Fetch and then by OrderBy
* [NH-2923] - Extra lazy indexed collection throws InvalidCastException fetching Count
* [NH-2955] - AbstractQueryImpl accepts IEnumerables in SetParameterList but breaks if they're not ICollections
* [NH-2977] - MsSqlServer dialects reject custom SQL Server queries with limits
* [NH-2985] - Wrong equals operator when you use <list> mapping when child has property with lazy="true"
* [NH-3056] - Fetch clause suppresses where clause if positioned before Select clause
* [NH-3058] - Methods on entities with lazy properties do not trigger load of lazy properties
* [NH-3070] - Proxy for an entity with a lazy property and a formula property is not .Equal to itself
* [NH-3132] - Property with access="field.camelcase" not working when another property is lazy
* [NH-3139] - Optional Entity association using lazy property returns proxy instead of null
* [NH-3160] - Null reference Exception when creating schema for dialect that doesn't support unique
* [NH-3183] - Linq ToFuture/ToFutureValue does not fall-back if dialect does not support multi-queries
* [NH-3186] - Simple query with Fetch and SingleOrDefault throws exception (regression from 3.3.0)
* [NH-3202] - Offset parameter is off by one for dialects with OffsetStartsAtOne set (SybaseSQLAnywhere10+)
* [NH-3235] - Query plan cache cannot be set to size zero
* [NH-3236] - Build menu incorrectly launches NUnit
* [NH-3244] - Proxying fails for methods with generic class as generic parameter constraints or generic parameter attributes
* [NH-3256] - GroupBySelectClauseRewriter fails or is suboptimal on .Net 4.0
* [NH-3260] - Unable to proxy generic methods with constraints referencing type parameters from containing class
* [NH-3274] - Take() support broken with Informix
* [NH-3281] - Linq providers are not being passed Limit and/or Offset as value only as parameters
* [NH-3340] - NHibernate assembly loses the AllowPartiallyTrustedCallers attribute after ILMerge
* [NH-3381] - atan2 should be defined to return double on Oracle and MySql
* [NH-3420] - Race Condition in result set wrapper because of the ColumnNameCache
** Improvement
* [NH-2005] - hql concat function not registered in MsSqlCeDialect
* [NH-2808] - Missing overloads for Session.Save/Update/SaveOrUpdate
* [NH-3037] - ActionQueue Insertion sort performance degrades exponentially (HHH-2957 Port)
* [NH-3054] - Mapping By-Code support for non-generic User Collection Types
* [NH-3133] - Support for importing classes in mapping.
* [NH-3175] - Joins should support additional restrictions (HQL-with)
* [NH-3238] - Add Sql2008ClientDriver support in DatabaseSetup for testing
* [NH-3272] - Move TypeHelperExtensionMethods to a more internal namespace
* [NH-3319] - Typo in a folder name in NHibernate.Test project
* [NH-3343] - Remove NHibernate custom Tuple classes
* [NH-3382] - Improve materialization performance (for simple Linq query, may reduce 50%+ time)
* [NH-3398] - Support PostgreSQL trigonometric functions
* [NH-3399] - Static fields on NHibernateUtil should be declared as their exact class
* [NH-3459] - DefaultIfEmpty not supported when used with a GroupBy
* [NH-3553] - Support the 'power' function on MS SQL Server
** New Feature
* [NH-3164] - Support building NHibernate on .Net 4
* [NH-3166] - Support for Microsoft Sql Server 2012
* [NH-3193] - MsSqlCeDialect should correct override string manipulation functions
* [NH-3195] - MsSqlCeDialect should support TOP limit
* [NH-3284] - New Ingres9+ Dialect
* [NH-3349] - Add support for managed ODP.NET
** Patch
* [NH-2778] - Batcher for MySql
* [NH-3540] - Null pointer exception for empty BaseDirectory (Path.combine)
** Task
* [NH-2997] - Where() clause with many-to-many relation is missing (solution in description)
* [NH-3097] - Move Iesi.Collections project to own repository
* [NH-3185] - Update included Iesi.Collections.dll and add its pdb file
* [NH-3314] - Remove ManagedWebSessionContext
* [NH-3322] - Remove one of the Firebird drivers
* [NH-3339] - Remove SecurityPermission attributes with LinkDemand for .NET 4.0 assemblies
* [NH-3344] - Remove the classical HQL parser
* [NH-3345] - Remove support for persistent non-generic collections
* [NH-3346] - Remove members obsolete in NH3 from NH4
* [NH-3347] - Remove obsolete dialects for NH4
Build 3.4.1.GA
=============================
** Bug
* [NH-3795] - C# compiler "Roslyn" regression
Build 3.4.0.GA
=============================
** Known BREAKING CHANGES from NH3.3.0.GA to NH3.4.0.GA
##### Possible Breaking Changes #####
* [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.
** Sub-task
* [NH-3432] - Merge fix for bug NH-3058 into 3.Next
** Bug
* [NH-2819] - DefaultDynamicLazyFieldInterceptor does not handle generic methods correctly
* [NH-2977] - MsSqlServer dialects reject custom SQL Server queries with limits
* [NH-3058] - Methods on entities with lazy properties do not trigger load of lazy properties
* [NH-3132] - Property with access="field.camelcase" not working when another property is lazy
* [NH-3244] - Proxying fails for methods with generic class as generic parameter constraints or generic parameter attributes
* [NH-3638] - Mapping-by-code is occasionally picking the wrong column name
** Patch
* [NH-3529] - Add linqtohql.generatorsregistry to nhibernate-configuration.xsd
** Task
* [NH-3412] - Need to reconcile changes to MsSql2005DialectQueryPager for NH-2977 between 3.3.3 and vNext
Build 3.4.0.CR1
=============================
** Sub-task
* [NH-3434] - Need to be sure NH-3428 is resolved in 3.Next.
** Bug
* [NH-1882] - Collection was not processed by flush when iterate through collection in PostUpdateEvent
* [NH-2128] - Interceptor fires AfterTransactionCompletion too many times with distributed transactions and user-supplied connections
* [NH-2290] - Invalid hql parenthesis expansion in generated sql
* [NH-2921] - IsSpecialName of getter/setter method of proxy property returns false
* [NH-2923] - Extra lazy indexed collection throws InvalidCastException fetching Count
* [NH-2943] - Mapping XmlDocument (.NET) to XmlType (Oracle). Class XmlDocType not working.
* [NH-2963] - Validation on a collection property (mapped with Loquacious config) raise an exception [Invalid expression type: Expected ExpressionType.MemberAccess, Found Convert]
* [NH-3103] - ManyToAny ByCode does not use field customizer
* [NH-3140] - Bag ManyToMany column is ignored if it's the same as the child entity name and is replaced with "elt" in the sql.
* [NH-3190] - QuerySyntaxException is thrown when where contains subselect that matches bool value
* [NH-3234] - Merge is failing with "Unable to resolve property"
* [NH-3237] - Max and Min aggregate expressions do not work for custom UserType due to unnecessary HQL Cast
* [NH-3277] - LINQ Projection of Int64 using ToString method causes "cast as char" instead of "cast as nvarchar" in MsSqlCe dialect
* [NH-3280] - Mapping OneToOne doesn't work for inherited members
* [NH-3315] - Distinct paging problem with alias SQL Server 2005
* [NH-3316] - Mapping parent property on component in a set adds bogus property element
* [NH-3405] - Cannot Use XDocument When Setting Wrap Resultsets
* [NH-3496] - NHibernate SqlServer2012Dialect drop sequence bug
* [NH-3505] - Stateless sessions fail to save relationships pointing to proxies when versioning is enabled
* [NH-3572] - AfterTransactionCompletion called twice if a distributed transaction is rolled back
* [NH-3592] - Failed to execute multi criteria with Ms Sql Ce 4.0
* [NH-3611] - NHibernateUtil.GuessType(typeof(string)) returns ClassMetaType
* [NH-3614] - Cannot create project an enumerable of non-mapped objects (List<string>)
* [NH-3615] - Incorrect assumption that namespace always exists
* [NH-3618] - ManyToOne does not allow to set "unique"="true", "unique-key" and "index" for multi-column properties
* [NH-3641] - Missing Outer Join
** Improvement
* [NH-2005] - hql concat function not registered in MsSqlCeDialect
* [NH-2958] - Delay creation of instance of XmlSerializer (loading xml assembly) until its needed.
* [NH-3465] - Add support of IIF function for Oracle
* [NH-3466] - Register MySQL functions
* [NH-3467] - Add support of 2-arg LOCATE function
* [NH-3608] - AbstractSessionImpl abstract method visibility
** New Feature
* [NH-2405] - MySQL5InnoDBDialect
* [NH-3192] - MsSqlCeDialect should override date manipulation functions
* [NH-3193] - MsSqlCeDialect should correct override string manipulation functions
* [NH-3194] - MsSqlCe40Dialect should support variable limits
* [NH-3195] - MsSqlCeDialect should support TOP limit
* [NH-3196] - MsSqlCeDialect should support guid.native id generator
** Patch
* [NH-2996] - MySQL 5.5 + .NET Connector 6.2+ and GUIDs: Need to use CHAR(36)
* [NH-3209] - DateTimeOffset properties have not been considered; only the properties of DateTime have been considered
** Task
* [NH-3251] - Update to antlr 3.5.0.2
Build 3.3.5.GA
=============================
** Bug
* [NH-3795] - C# compiler "Roslyn" regression
Build 3.3.4.GA
=============================
** Bug
* [NH-3638] - Mapping-by-code is occasionally picking the wrong column name
Build 3.3.3.SP1
=============================
Fixes for regressions introduced in the 3.3.3 cycle.
** Bug
* [NH-3429] - Exception when debug logging is enabled when using a linq expression that requires a proxy class.
* [NH-3436] - Linq-Query with IList<X>.Contains fails with NotSupportedException(The constant for 'System.Collections.Generic.List`1[System.Guid]' is not supported) at HqlTreeBuilder.Constant
Build 3.3.3.GA
=============================
BEWARE: In versions prior to 3.3.3.CR1, the handling of the LINQ Take() method
was flawed - no matter where in the query Take() was placed it was
always applied as if it had been placed at the end. 3.3.3 fixes this,
so that Take() now correctly follows the .Net semantics. That is, in
3.3.3, the following queries might now give different results:
session.Query<Foo>.OrderBy(...).Take(5).Where(...);
session.Query<Foo>.Where(...).OrderBy(...).Take(5);
Starting with 3.3.3, the first query will generate a subquery to correctly
apply the row limit before the where-clause.
** Bug
* [NH-2408] - SQL Server pessimistic locking syntax incorrect for union-subclass
* [NH-3109] - Rounding float values in aggregate functions with group by statements (MySQL).
* [NH-3324] - HQL: ArgumentNullException when using LEFT OUTER JOIN and SetMaxResults
* [NH-3408] - System.IndexOutOfRangeException when using Contains on a List<byte[]>
* [NH-3413] - Clearing a list used by Contains causes subsequent queries to fail
Build 3.3.3.CR1
=============================
** Fix
* [NH-3148] - ComponentAsId properties do not maintain the Column specified using property mapper when component is from base class
** Sub-task
* [NH-3052] - Projection of one-to-many generates invalid SQL
* [NH-3385] - Add ability to expand many subcollections with WCF Data Services
** Bug
* [NH-2042] - Table per subclass, using a discriminator mappings with formula in child class error
* [NH-2539] - Contains/StartsWith fails when invoked via WCF Data Service.
* [NH-2566] - NotSupportedException when using Skip/Take/First/Single/Any on GroupBy
* [NH-2588] - NotSupportedException when using Skip/Take with Where clause
* [NH-2860] - Lazy property throwing casting exception
* [NH-2979] - MsSqlCe dialect doesn't give the correct SQL type for Decimal with Scale defined
* [NH-3039] - IndexOutOfRangeException thrown when web server is processing multiple sessionfactory creation requests
* [NH-3057] - Collection subquery constraint on joined-subclass inherited properties causes invalid sql (base classes are not joined in).
* [NH-3105] - ComponentAsId does not find property that belongs to a parent class
* [NH-3108] - OrderBy with Select throws exception
* [NH-3129] - Linq Provider doesn't recognize CompareTo method
* [NH-3241] - Linq: Mixing Fetch/FetchMany with Any() throws: ArgumentException: Expression of type 'System.Collections.IList' cannot be used for parameter of type 'System.Collections.Generic.IEnumerable`1[System.Object]'
* [NH-3261] - Linq Query throws when there is a conditional operator
* [NH-3305] - SybaseSQLAnywhere10Dialect defaults a numeric datatype to (19,255) precision, which is not compatible with the DB
* [NH-3318] - Composite-id does not allow superclass properties
* [NH-3320] - Exception in LINQ projection with OrderBy/Take - block using WCF Data Services projection's
* [NH-3326] - Exception in LINQ with pagination - block using WCF Data Services
* [NH-3330] - Exception in LINQ for nullable strings in Oracle - blocks using WCF Data Services
* [NH-3332] - The NH linq driver generates sql code that doesn't match the semantics of the original linq query
* [NH-3337] - Exception in LINQ for complex nullable conditionals - blocks using WCF Data Services
* [NH-3357] - System.NotSupportedException : Don't currently support idents of type DateTimeOffset
* [NH-3366] - LINQ query with various Compare() and CompareTo() fails (WCF Data Services)
* [NH-3369] - ToFuture/ToFutureValue should fall-back on dialects without MultiQuery support
* [NH-3378] - MySQLDialect incorrect handle DbType.Currency as MONEY
* [NH-3379] - Oracle8iDialect and FirebirdDialect incorrect handle DbType.Currency type
** Improvement
* [NH-2297] - Configuration.BuildSessionFactory throws a NullReferenceException when loading an invalid ICompositeUserType
* [NH-3301] - Support SqlMethods.Like() in LINQ queries.
* [NH-3360] - Allow setting timeout on a LINQ query
* [NH-3367] - Support string.Equals()
* [NH-3368] - Add support for Equals method of sbyte, DateTimeOffset and unsigned numerics
* [NH-3371] - NHibernate should log LINQ expression trees to ease debugging
** New Feature
* [NH-2986] - Add ability to include collections into projections
* [NH-3092] - Nhibernate Linq provider does not support Math functions like Math.Cos, Math.Sin, etc
* [NH-3180] - Could not select first element of the group
* [NH-3184] - Add ability to use ToFutureValue with aggregating queries
* [NH-3283] - New driver: Devart.Data.MySql
* [NH-3333] - Add ability to expand subcollections with WCF Data Services
** Patch
* [NH-3255] - The IDbCommand that performs the cleanup of data in AbstractStatementExecutor.DropTemporaryTableIfNecessary does not have a connection.
Build 3.3.2.GA
=============================
** Bug
* [NH-2463] - Exception in LINQ projection with redundant type cast - block using WCF Data Services projection's
* [NH-2688] - SelectMany with cast throws QuerySyntaxException
* [NH-2898] - Retrieving object from 2nd cache with lazy property fails
* [NH-3050] - Contributed patch as solution to Unable to cast object of type 'NHibernate.Impl.ExpandedQueryExpression' to type 'NHibernate.Linq.NhLinqExpression' at NHibernate.Linq.NhQueryProvider.PrepareQuery
* [NH-3123] - Nuget package should contain the NHibernate logo
* [NH-3217] - OrderBy with a parameter then Skip and Take produces sql error
* [NH-3239] - Linq to NHibernate and Dynamic LINQ - query caching not working
* [NH-3271] - Threading problem in TypeFactory
** Improvement
* [NH-3296] - Tweak build system to allow keeping a constant assembly version between compatible releases
* [NH-3297] - NHibernate 3.x NuGet package should forbid Iesi.Collections 4.0 or higher
** Patch
* [NH-3293] - SimpleExpression.ToString() returns hashes for strings and dates
Build 3.3.1.GA
=============================
** Sub-task
* [NH-3167] - Support for Microsoft Sql Server 2012 sequences
* [NH-3170] - Add native "iif" function to MsSql2012Dialect
** Bug
* [NH-2789] - LINQ query on byte? simple property fails on MSSQL 2005 (tinyint)
* [NH-2812] - Performing a Linq query on a non-null byte property throws an InvalidCastException
* [NH-3121] - Silent truncation of binary data
* [NH-3124] - invalid cast to int in generated sql with a char property
* [NH-3125] - Invalid SQL when querying via LINQ with grouping (regression from 3.2)
* [NH-3126] - InvalidCastException when cascading saves to transient dictionary values
* [NH-3138] - Distinct Bug on MSSQL with OrderBy/Limit and functions in Projection/Order
* [NH-3142] - Batch-loading of lazy children failing when key is composite
* [NH-3145] - HQL query using base class entity with lazy properties throws "No Persister For" error
* [NH-3147] - Calling Contains on a subquery that contains a join throws an Exception
* [NH-3153] - Duplicated id generator tables if schema is specified using different methods for different classes.
* [NH-3162] - Byte.Equals in LINQ Where clauses throws NotSupportedException
* [NH-3172] - "Duplicate dynamic module name within an assembly"
** Improvement
* [NH-3104] - Typo in Warning Messages
* [NH-3149] - MsSql2005Dialect should use nowait in LockMode.UPGRADE_NOWAIT
* [NH-3156] - ShowBuildMenu.bat does not work with spaces in repository folder name
* [NH-3168] - Add support for bit_length function for MsSql2000Dialect and above
* [NH-3169] - Add supprot for extract function for MsSql2000Dialect and above
Build 3.3.0.GA
=============================
** Known BREAKING CHANGES from NH3.2.0.GA to NH3.3.0.GA
##### Possible Breaking Changes #####
* [NH-2214] - SQL Server 2005/2008: Exception is now thrown when paging a statement that requires distinct results, and is ordered by a column that is not included in the result set of the query
- Dialog.ExtractColumnOrAliasNames method signature and visibility changed - may affect custom dialects that use this method
* [NH-2950] - IAccessCallback.NextValue property renamed and changed to a method called IAccessCallback.GetNextValue()
* [NH-2953] - SequenceStyleGenerator now forces use of a table if a pooled optimizer is chosen and the dialect doesn't support pooled sequences.
* [NH-2960] - Queries for an entity name will now not include instances of the same class mapped using a different entity name.
* [NH-2664] - IHqlExpressionVisitor has new property ISessionFactory SessionFactory { get; }
* [NH-3067] - The use of Substring() in Linq queries have been corrected so the zero-based index parameter in C# is converted to one-based index in SQL.
* [NH-2528] - Throw exception instead of silently truncate string and blob data
* [NH-3086] - The base dialect now defaults to ANSI syntax for substring. A custom dialect may need to adjust for this.
** Bug
* [NH-2956] - SybaseSQLAnywhere10Dialect doesn't override OffsetStartsAtOne
* [NH-3111] - Wrong SQL generated when subquery uses objects from parent query
** Improvement
* [NH-3086] - All dialects should support substring() with two arguments
Build 3.3.0.CR1
=============================
** Bug
* [NH-1477] - Saving a collection (thats been Cleared) with all-delete-orphan using Oracle with ODP drivers
* [NH-2214] - Distinct and Row_number problem
* [NH-2347] - Casts inside aggregate functions are incorrectly applied outside of them
* [NH-2419] - Linq Provider Problem with group by with an order by clause
* [NH-2429] - SQL Server Linq Average function on Interger field only returns truncated interger value
* [NH-2439] - LINQ 'in' query not fully interpreted
* [NH-2451] - LINQ Issue - joining twice with same table when used in both select and where. Second join is a full select and filtered in where instead of a join .. on
* [NH-2452] - NH 3.0 Linq provider does not correctly translate standard .Key property when grouping
* [NH-2492] - Problem with ROW_NUMBER and DISTINCT operator using LINQ
* [NH-2511] - System.ArgumentException: Object of type 'System.Linq.Expressions.ConstantExpression' cannot be converted to type 'System.Linq.Expressions.LambdaExpression' when passing an expression through a method
* [NH-2527] - AbstractBatcher reuses disposed IDbCommands which causes an ArgumentOutOfRangeException with OracleDataClientDriver
* [NH-2560] - NoViableAltException with ordering by projection in GroupBy
* [NH-2664] - Linq, cannot query dynamic-component
* [NH-2706] - subselect in LINQ query with Contains clause produces wrong SQL
* [NH-2722] - Linq Count() does not respect previous calls to Select() or Distinct()
* [NH-2744] - NewArrayInit Is not Implemented
* [NH-2763] - queryover fails where referencing enum in VB.NET
* [NH-2781] - linq's OrderBy by a calculated column doesn't work
* [NH-2809] - Incorrect specification of VARBINARY(MAX) in MsSql2005Dialect
* [NH-2828] - Persist uploads not initialized collections on flush
* [NH-2833] - "where" clause not working after "group by", generates wrong SQL
* [NH-2846] - Fetch on Count Throws Error
* [NH-2850] - Unable to use enums in NH 3.2 QueryOver checked comparison
* [NH-2853] - SetFirstResult and SetMaxResults do not work correctly on Oracle (ODP.NET)
* [NH-2856] - Retrieval of cached query with Fetch throws exception
* [NH-2857] - Medium Trust Bug in 3.2
* [NH-2858] - ToString() on Guid column with SQL Server Dialects
* [NH-2863] - Criteria API restriction over aggregate function wrapped in NotExpression is wrongly placed in WHERE clause instead of HAVING clause which generates invalid SQL
* [NH-2869] - Custom extension methods in the select clause are not projected using HQL
* [NH-2880] - Proxies loose their session reference on session deserialization
* [NH-2881] - Fix not found key handling on extra lazy one to many maps
* [NH-2886] - Informix support broken
* [NH-2889] - QueryOver component with multiple properties results in Sql Error
* [NH-2891] - Too many parameters removed (Pervasive SQL) - SELECT doesn't work
* [NH-2893] - NHibernate SQL Parameter on IBM.Data.DB2.iSeries provider
* [NH-2904] - Wrong query generation with LINQ subquery
* [NH-2906] - Using the same parameter name for two differently typed where clauses throws an exception
* [NH-2913] - LINQ query that contains .Any() produces invalid SQL
* [NH-2917] - Paging error with Skip().Take().
* [NH-2925] - Improper SQL is generated for Take (pagination) for dialects which have UseMaxForLimit = true (like Oracle)
* [NH-2927] - Oracle Dialect does not handle the correct resolution for timestamp version columns
* [NH-2937] - Invalid index 0 for this DB2ParameterCollection with Count=0.
* [NH-2940] - OracleDialect creates wrong sql using SetFirstResult with criteria queries
* [NH-2946] - Superfluous join when querying by foreign key given Id with LINQ
* [NH-2954] - PostgreSQL should SupportsPooledSequences
* [NH-2959] - Polymorphic queries in MultiQuery, MultiCriteria and Futures cause ArgumentOutOfRangeException
* [NH-2960] - Query using entity name also returns entities of same type but different entity name
* [NH-2967] - MySQL Schema Update tool fails with exception
* [NH-2976] - AbstractPersistentCollection.Remove does not remove item from an uninitialized dictionary
* [NH-2989] - ComponentAsId does not set Id Property
* [NH-2998] - Allow to use AsQueryable on child collection
* [NH-3000] - QuerySyntaxException: Exception of type 'Antlr.Runtime.NoViableAltException' was thrown. when projection contains complex code [regression]
* [NH-3001] - NHibernate.HibernateException: Query Source could not be identified
* [NH-3002] - HQL: parser is trying to reuse parent implied join for subquery
* [NH-3003] - Linq: extra joins
* [NH-3004] - DriverBase.RemoveUnusedCommandParameters removes all parameters when UseNamedPrefixInSql = true and UseNamedPrefixInParameter = false
* [NH-3008] - Excess DB parameters created when passing SqlFunctionProjection to LHS of InExpression
* [NH-3009] - Linq trying to add parameters twice if same predicate is used in query more then once
* [NH-3016] - Mapping by code does not properly support nested types
* [NH-3019] - LINQ: Select Key from group by generates wrong SQL
* [NH-3020] - Firebird and DB2 dialect claims to support sequences, but throws in GetSelectSequenceNextValString(string) (since not overriden)
* [NH-3026] - Linq order by grouped count before select clause gives wrong sql
* [NH-3031] - Cannot Sum Property of Type Single
* [NH-3032] - Group By and Condition Throws Exception
* [NH-3036] - Wrong SqlType size set for LIKE statement
* [NH-3044] - Self-joined query with subquery and where - where applied to subquery rather than the external query
* [NH-3059] - Contains broken when used on a path (Works in previous version)
* [NH-3063] - Turkish-I problem in ValidateColumn
* [NH-3064] - Schema validation fails for ODBC
* [NH-3073] - Equal in Linq-provider is only implemented for string
** Improvement
* [NH-1007] - Add a generator attribute to id
* [NH-2528] - Throw exception instead of silently truncate string and blob data
* [NH-2825] - Add property-ref and not-found attributes in mapping by code
* [NH-2835] - SQL Anywhere dialect/driver improvements
* [NH-2870] - Simplify Development on NHibernate for Contributors
* [NH-2875] - Add Foreign Key to one-to-one mapping by code
* [NH-2883] - DisableLogFormatedSql is not useful
* [NH-2899] - Support for "in (<subquery>)" in Linq
* [NH-2950] - Update optimizers for enhanced id generators (ported from Hibernate)
* [NH-2953] - Update the SequenceStyleGenerator
* [NH-2962] - Fix PostgreSQL and Firebird timestamp selection and precision
* [NH-2974] - Add unsaved-value attribute in mapping by code.
* [NH-2980] - Port enhanced TableGenerator from Hibernate
* [NH-3024] - Mapping-by-Code does not allow Unique in Component mapping
* [NH-3040] - SymbolSource support along with NuGet
** Patch
* [NH-2004] - SequenceStyleGenerator + TableStructure opens multiple transactions.
* [NH-2545] - Comparing strings in VB throws NotSupportedException
* [NH-2840] - Improper SQL is generated for Take (pagination) for dialects which have UseMaxForLimit = true (like Oracle)
* [NH-2864] - Fix for nuget package creation.
* [NH-2905] - Support for multistep joins in Linq
* [NH-2914] - Functions for DateTime properties in OracleDialect
* [NH-2924] - CLONE - Improper SQL is generated for Take (pagination) for dialects which have UseMaxForLimit = true (like Oracle)
* [NH-2936] - Better Sequence Support for Firebird
* [NH-2964] - WhereRestrictionOn().IsInG() is a icollection not ienumerable like it should be
* [NH-2982] - SimpleExpression.ToString() can result in unwanted loading of lazy objects
* [NH-3010] - Fix for batching/command behaviour in OneToManyPersister
* [NH-3067] - Linq - substring function does not work
** Task
* [NH-2672] - Upgrade Npgsql lib file to next release after 2.0.11.91.
* [NH-2752] - Re-enable CriteriaQueryTest.AllowToSetLimitOnSubquries for SQLite
Build 3.2.0.GA (rev6000)
=============================
** Known BREAKING CHANGES from NH3.1.0.GA to NH3.2.0.GA
##### Design time #####
* removed obsolete "use_outer_join" property from nhibernate-configuration.xsd (simply remove it from your xml configuration)
##### Possible Breaking Changes #####
* All Dialect.GetLimitString() methods replaced with a single GetLimitString method with a new signature.
For dialects the developers don't perform routine tests on, efforts were made to ensure the new limit string
method conforms to the database documentation. Please report any limit-related bugs discovered at runtime.
* [NH-2550] - Allow public access to FieldInterceptor Session (IFieldInterceptor changed)
* [NH-2593] - For Microsoft SQL Server the default batch-size (adonet.batch_size) is set to 20 where not explicit defined in the session-factory configuration
* - ICollectionPersister added property to fix [NH-2489]
* [NH-2605] Refactorize MultiQuery/MultiCriteria implementation to delegate responsibility to IDrive (IDrive changed).
* For users who don't look at Log-ERROR, to prevent wrong behavior when lazy-properties are used the DynamicProxyValidator validates the accessability of properties setters.
* For those implementing IDrive without inherit from DriveBase: IDrive.AdjustCommand
* Dialect base: removed some no more needed properties
** Bug
* [NH-2792] - Using a named parameter multiple times in a native SQL query results in invalid parameter binding (exception in some drivers)
* [NH-2813] - Cache DefaultExpiration type is "byte"
** Improvement
* [NH-2571] - Full PostgreSQL Support
* [NH-2743] - Generic version of ISession.Merge()
* [NH-2800] - Change internal primitive type constructor to protected
** Patch
* [NH-2811] - Wrong logger type into AdoNetTransactionFactory & AdoNetWithDistributedTransactionFactory classes
* [NH-2814] - Documentation Error: Section 3.5 - Table 3.2 - transaction.factory_class (with patch)
Build 3.2.0.CR1 (rev5976)
=============================
** Bug
* [NH-2118] - GroupBy without Select doesnt work
* [NH-2387] - Postgres - Unable to run LINQ query using boolean predicate - ERROR: 42883: operator does not exist: boolean = integer
* [NH-2435] - No order by clause generated with self referencing orderby clause.
* [NH-2583] - Query with || operator and navigations (many-to-one) creates wrong joins
* [NH-2773] - ProxyObjectReference creates a new ProxyFactory for each deserialization which disables proxy caching
** Improvement
* [NH-2748] - Support % operator
** Patch
* [NH-2774] - Perf - reusing same regex object in joinwalker objects
Build 3.2.0.Beta2 (rev5964)
=============================
** Bug
* [NH-2206] - Cast is not supported by the new Linq provider
* [NH-2213] - CLONE -Wrong parameters order in IQuery with SetParameterList and Filter. SQL Server 2005
* [NH-2296] - Subselect fetching strategy with a "SetMaxResults" query generates *extremely* inefficient sql
* [NH-2317] - Select after Take does not work properly
* [NH-2318] - Template functions fail with certain combinations of arguments.
* [NH-2328] - Linq query on <Any/> fails
* [NH-2415] - HQL parameters not converted correctly to SQL
* [NH-2657] - OrderBy After Cast Not Working
* [NH-2662] - Casting a joined alias in QueryOver loses alias context and looks for property on QueryOver root
* [NH-2700] - SqlFunctionProjection does not honor parameter order
* [NH-2701] - Cannot use Linq Skip() in conjunction with FetchMany and ToFuture
* [NH-2703] - Using a "with" restriction in outer joins result in wrong SQL
* [NH-2708] - Cast<>() with a where clause fails with a NotSupportedException
* [NH-2712] - Linq query doesn't support enums in VB.NET
* [NH-2717] - Count() after Cast<>() causes InvalidOperationException
* [NH-2729] - Parameter values are not set using OffsetStartsAtOne
* [NH-2733] - Using an expression in QueryOver gives: Lambda Parameter not in scope
* [NH-2736] - Inverted parameters in HQL statement using take
* [NH-2739] - Can't get ByCode mapping to produce not nullable varbinary(max)
* [NH-2741] - CLONE -HQL .class query on <any> mapping does not work
* [NH-2746] - Invalid SQL generated for MSSQL when using Filter and paging subquery together [regression from 2.1]
** Improvement
* [NH-941] - One-Many Requiring Nullable Foreign Keys
* [NH-1050] - Unidirectional One To Many Without Nullable Foreign Key
* [NH-2070] - Better error message for "object references an unsaved transient instance"
* [NH-2427] - Support querying HasValue on Nullable types
* [NH-2683] - Add common dialect functions as extension methods for QueryOver
* [NH-2702] - Support HQL pagination with parameters
* [NH-2728] - ManyToAny missing from ICollectionElementRelation<TElement>
* [NH-2732] - Dialect.GetLimitString simplifications and improvements
* [NH-2738] - Exception thrown when mapping contains empty enum
* [NH-2749] - Externalize Remotion.Linq namespace
* [NH-2753] - one-shot-insert for <list> and <map> for unidirectional one-to-many
* [NH-2760] - Unable to order by sub-collection's count
* [NH-2770] - Property spelling of IDbIntegrationConfigurationProperties.LogFormatedSql
** New Feature
* [NH-2616] - Support Trim() function in Linq
** Patch
* [NH-2125] - Solution for NH2123 - Subselect in combination with a disjuction query causes an enormous memory cons
* [NH-2363] - Patch for ComponentCollectionCriteriaInfoProvider, fixed persister.ElementType cast in constructor.
Build 3.2.0.Beta1 (rev5839)
=============================
** Bug
* [NH-2404] - Future queries crash (MultiQuery) when using projection queries using hql + result transformer or the linq provider (which compiles into hql)
* [NH-2421] - NotSupportedException text in ToFuture and ToFutureValue does not make sense (or help)
* [NH-2422] - ToFuture throws NotSupportedException on IQueryable if Fetch is used.
* [NH-2559] - NH 3.0 Linq Provider : Issue using multiple filters on the same entity
* [NH-2615] - Linq Fetch cannot traverse through components
* [NH-2690] - Linq Select() broken with .ToFuture()
* [NH-2691] - Linq LongCount() behavior different from Count()
* [NH-2697] - Named parameter not found in HQL with mapping using "entity-name"
* [NH-2698] - Proxying fails for methods with generic type constraints
** Improvement
* [NH-2568] - Create Custom Persister for Collection Type inherited from OneToManyPersister
* [NH-2695] - update default driver of firebird dialect to FirebirdClientDriver (FirebirdDriver is obsolete)
** New Feature
* [NH-2699] - Sql Azure dialect
Build 3.2.0.Aplha3 (rev5803)
=============================
** Sub-task
* [NH-1344] - QueryTranslator: Invalid Cast to object array when using IResultTransformer
* [NH-1642] - one-to-many collection doesn't work if the child is mapped using table per class
** Bug
* [NH-1090] - Query cache does not work when using Criteria API to create a projection query with a result transformer
* [NH-1747] - Lazy load failure on items using <join> if FK for bag is in the secondary table
* [NH-2510] - Lazy-loading doesn't work with cache
* [NH-2569] - IDGeneratorBinding seems broken when mixing schemas
* [NH-2587] - .Cacheable().Fetch() throws 'Exception occurred getter of xxx'
* [NH-2661] - NHibernate cannot handle SQL Server TIME columns when built with the .NET 4 framework
* [NH-2673] - Nhibernate 2nd level cache and Result transformer
* [NH-2685] - Unnecessary proxy initialisation in CriteriaQueryTranslator
* [NH-2686] - Embedded ResultsTransformers should implements Equals/GetHashCode
** Improvement
* [NH-2505] - Querries with WHERE containing SQL Server 'bit' datatype produce CASE construction
* [NH-2551] - Bad code practice. Function SessionFactoryImpl.GetImplementors: if type not found - value from ReflectHelper.ClassForFullName returns through TypeLoadException.
* [NH-2670] - Stateless Session load no-lazy collection
* [NH-2684] - More simple way to add NamedQueries by-code
** New Feature
* [NH-2674] - QueryOver doesn't have support for entity-name
** Patch
* [NH-2669] - Patch to prevent "NHibernate.AssertionFailure: possible non-threadsafe access to the session" error caused by stateless sessions
Build 3.2.0.Aplha2 (rev5715)
=============================
** Bug
* [NH-2540] - Linq generates invalid boolean case statements (was: Linq ignoring configured query-substitutions)
* [NH-2640] - HQL Having clause is ignored without preceeding group by
* [NH-2641] - HQL does not throw exception on unexpected trailing tokens
* [NH-2642] - BatcherDataReaderWrapper.GetValue has a typo
* [NH-2643] - MSSQL configuration template is still using "use_outer_join"
* [NH-2652] - SchemaMetadataUpdater does not take Dialect default properties
** Improvement