-
Notifications
You must be signed in to change notification settings - Fork 3.5k
/
changelog.txt
3279 lines (2838 loc) · 223 KB
/
changelog.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
Hibernate 5 Changelog
=======================
Note: Please refer to JIRA to learn more about each issue.
Changes in 5.4.24.Final (November 17, 2020)
------------------------------------------------------------------------------------------------------------------------
https://hibernate.atlassian.net/projects/HHH/versions/31892
** Bug
* [HHH-14333] - Pessimistic Lock causes FOR UPDATE on outer join statements
* [HHH-14329] - DirtinessTracker usage for enhanced entities doesn't respect mutable types
* [HHH-14322] - HBM many-to-one property-ref broken since 5.3.2 due to HHH-12684
* [HHH-14317] - Avoid closing datasource in AgroalConnectionProvider if datasource is not initialized
* [HHH-14316] - Avoid accessing state in DriverManagerConnectionProviderImpl if null
* [HHH-14312] - Padded batch style entity loader ignores entity graph
* [HHH-14310] - Document hibernate.query.in_clause_parameter_padding
* [HHH-14288] - Complex batch insert query stopped to work
* [HHH-14279] - Broken 'with key(...)' operator on entity-key maps
* [HHH-14276] - Nested ID class using derived identifiers fails with strange AnnotationException: unable to find column reference in the @MapsId mapping: `game_id`
* [HHH-14257] - An Entity A with a map collection having as index an Embeddable with a an association to the Entity A fails with a NPE
* [HHH-13310] - getParameterValue() not working for collections
** Improvement
* [HHH-14332] - Make it easier for Quarkus SPI to avoid loading XML
* [HHH-14325] - Add Query hint for specifying "query spaces" for native queries
* [HHH-14158] - Upgrade Javassist to the latest version
** Task
* [HHH-14324] - Add .gradletasknamecache to .gitignore
* [HHH-14309] - Improve `BulkOperationCleanupAction#affectedEntity`
* [HHH-14225] - CVE-2020-25638 Potential for SQL injection on use_sql_comments logging enabled
Changes in 5.4.23.Final (November 01, 2020)
------------------------------------------------------------------------------------------------------------------------
https://hibernate.atlassian.net/projects/HHH/versions/31887
** Bug
* [HHH-14279] - Broken 'with key(...)' operator on entity-key maps
* [HHH-14275] - Broken link to Infinispan User Guide in Hibernate 5.3 User Guide
* [HHH-14260] - Dead links in user guide
* [HHH-14259] - HHH-13980 is not merged into 5.4
* [HHH-14249] - MultiLineImport fails when script contains blank spaces or tabs at the end of the last sql statement
* [HHH-14247] - Automatic release scripts, wrong Jira release url
* [HHH-14227] - Insert statements are not ordered with entities that use inheritance and reference a subclass
** Improvement
* [HHH-14305] - Analyse retained heap after bootstrap to trim memory consumption
* [HHH-14304] - Replacing eager initialization of LockingStrategy within AbstractEntityPersister
* [HHH-14303] - Upgrade to JBoss Loging 3.4.1.Final
* [HHH-14302] - Upgrade to Agroal 1.9
* [HHH-14301] - Upgrade to Byte Buddy 1.10.17
* [HHH-14300] - Update to Hibernate Validator 6.1.6.Final
* [HHH-14299] - Upgrade to Hibernate Commons Annotations 5.1.2.Final
* [HHH-14293] - Clear JPAMetadataProvider and ReflectionManager caches after SessionFactory initialization
* [HHH-14292] - Avoid defensive copy for keywords set in NormalizingIdentifierHelperImpl
* [HHH-14290] - Upgrade to Hibernate Commons Annotations 5.1.1.Final
* [HHH-14289] - Detection of JDBC support for RefCursors was returning false even for Oracle JDBC drivers supporting it
* [HHH-14268] - Include stacktrace at WARN level in case of an error occurs when getting the connection metadata
* [HHH-14248] - improve ActionQueue in minor way to improve its maintainability
* [HHH-14245] - Jakarta EE 8 Persistence test failure for com.sun.ts.tests.jpa.core.criteriaapi.CriteriaBuilder.Client.sizeCollectionTest(Client.java:7436)
* [HHH-10715] - We should try to reduce the static field usage only when this is absolutely necessary
** Sub-task
* [HHH-14196] - Add parsing of persistence.xml/orm.xml documents in the EE 9 namespace
** Task
* [HHH-14298] - Evolve HCANNHelper to maintain compatibility with 5.1.0 while benefitting from 5.1.1 features
* [HHH-14284] - Update Oracle JDBC driver configuration to test with version 19.8.0.0
* [HHH-14283] - Review tuning of JVM parameters for the build
* [HHH-14282] - StandardRefCursorSupport can rely on having JDK8 as baseline today
* [HHH-14278] - No longer use the AssertionFailure and StringHelper implementations from HCANN
* [HHH-14269] - Confusing method names unableToObjectConnectionMetadata and unableToObjectConnectionToQueryMetadata
* [HHH-13895] - Upgrade the PostgreSQL JDBC driver used for testing to v. 42.2.16
Changes in 5.4.22.Final (September 30, 2020)
------------------------------------------------------------------------------------------------------------------------
https://hibernate.atlassian.net/projects/HHH/versions/31844
** Bug
* [HHH-14231] - java.lang.ClassCastException: [B cannot be cast to [Ljava.lang.Object; while using JPA 2.2 query.getResultStream().findFirst()
* [HHH-14230] - ClassCastException raised by ForeignKeyKey.toString()
* [HHH-14223] - NullPointerException when implicit joining over @JoinFormula/@JoinColumnOrFormula
* [HHH-14220] - EnhancementException failure with MappedSuperclass with a un-mapped collection
* [HHH-14219] - Duplicated rows of sequence table if generator shared by multiple entities
* [HHH-14213] - Could not parse literal [9223372036854775808] as integer
* [HHH-14212] - @EntityGraph annotation log warning message "Entity graph specified is not applicable to the entity ... . Ignored." and works as if EntityGraph.EntityGraphType.LOAD would set.
* [HHH-14206] - Auto-apply converter not applied to primitives
* [HHH-14201] - Wrong order of joins in SQL
* [HHH-14199] - setDataBase gradle task failed
* [HHH-14197] - Criteria API doubly-nested subquery generates invalid SQL - missing subquery root
* [HHH-14148] - Invalid SQL when null precedence, @OrderBy and entity graph are used
* [HHH-13201] - FromElement orign check fails when fetching @ElementCollection and association
* [HHH-13058] - Criteria API correlated subquery with outer join generates incorrect SQL
* [HHH-9422] - Metamodel Generator should close streams opened to persistence.xml and referenced mapping files
** Improvement
* [HHH-14242] - Micro optimisations of ActionQueue: redundant branch evaluation
* [HHH-14238] - Option to always include collection fields in the default fetch group
* [HHH-14236] - Improve efficiency of ForeignKeyKey
* [HHH-14218] - Correct some typos in code comments
* [HHH-14205] - Replace StringBuffer usage with StringBuilder when possible
* [HHH-14031] - Update h2 database from 1.4.196 to 1.4.197
** New Feature
* [HHH-14198] - Expose CompositeUserTypes through JPA Metamodel
** Task
* [HHH-14217] - Use ANSI escape codes to highlight output of hibernate.show_sql
* [HHH-14204] - Schema validator should be more forgiving of column type mismatches
* [HHH-14203] - DB2 requires the restrict keyword to drop the schema
Changes in 5.4.21.Final (August 27, 2020)
------------------------------------------------------------------------------------------------------------------------
https://hibernate.atlassian.net/projects/HHH/versions/31844
** Bug
* [HHH-14193] - MultipleLinesSqlCommandExtractor should tolerate empty input scripts
* [HHH-14187] - Lazy loading fails if an entity appears twice in the object graph when enhancement as proxy is enabled
* [HHH-14183] - LocalTimeJavaDescriptor attempts casting to LocalDate
* [HHH-14179] - MultiLineImportExtractorTest fails on Windows
* [HHH-14175] - StatefulPersistenceContext#getLoadedCollectionOwnerOrNull could NPE on missing CollectionEntry
* [HHH-14159] - StandardQueryCacheFactory mentioned in the docs but does not exist
* [HHH-14156] - IN subquery predicate with entity aliases produces wrong SQL "too few columns in subquery"
* [HHH-14154] - Incorrect SQL generated from Criteria API when concat() and function() methods are used together
* [HHH-14153] - HQL update query on abstract entity generates temporary table
* [HHH-14152] - Query fails after upgrading to 5.4.20.Final
* [HHH-14149] - Improve efficiency of LazyAttributesMetadata#getLazyAttributeNames
* [HHH-13380] - Bytecode enhanced entities might throw LazyInitializationException from custom equals/hashcode implementations
** Improvement
* [HHH-14190] - Rename isEmptyOrWhitespace() to isBlank() and improve its efficiency
* [HHH-14160] - Use a runtime used class for testing Bean Validation presence
** Patch
* [HHH-14181] - HQL update/delete query resulted in same table being updated twice
* [HHH-3326] - Temporary tables created in SQLServer use the collation for tempdb, not the application database
** Task
* [HHH-14150] - Upgrade to Byteman 4.0.13
Changes in 5.4.20.Final (August 10, 2020)
------------------------------------------------------------------------------------------------------------------------
https://hibernate.atlassian.net/projects/HHH/versions/31844
** Bug
* [HHH-14129] - Bidirectional relationship with @NotNull fails to save
* [HHH-14124] - Entity graph (fetch graph) is incorrectly applied to query results beyond the first one
* [HHH-14109] - IN Clause Parameter Padding not working if parameter count is between last valid power of 2 number and 'in expression limit'
* [HHH-13974] - FlushMode set through SessionBuilder#flushMode() is ignored
** Improvement
* [HHH-14142] - Make constructor of StatelessSessionImpl public
* [HHH-14137] - Empty String Check Performance Improvement
* [HHH-14133] - Fix mistake in example code for 'second level cache' in user guide
** Task
* [HHH-14144] - Explicitly set localization assumptions for the build and testsuite
* [HHH-14143] - Detect illegal concurrent usage of LogicalConnectionManagedImpl
* [HHH-14126] - Add CockroachDB to DefaultDialectSelector and update documentation to mention the new dialect
* [HHH-14033] - SQL script parsing problem with multi-line comments
Changes in 5.4.19.Final (July 27, 2020)
------------------------------------------------------------------------------------------------------------------------
https://hibernate.atlassian.net/projects/HHH/versions/31844
** Bug
* [HHH-14116] - Exception when fetch joining a non-collection when selecting non-query-root
* [HHH-14112] - Invalid Pagination COUNT query generated with @Inheritance(strategy = InheritanceType.JOINED)
* [HHH-14108] - PADDED and DYNAMIC Batch loading strategies not compatible with the Enhanced Proxy feature
* [HHH-14106] - Return entry from `#parentsByChild` in `StateFulPersistenceContext#getParentsByChild`
* [HHH-14098] - Query plan cache query-level statistics documentation, used getQueryPlanCacheMissCount instead of getPlanCompilationTotalMicroseconds
* [HHH-14097] - Versions 5.4.11.Final+ produce too many sql queries
* [HHH-14071] - @FetchProfile not working with @OneToOne(mappedBy=...) properties
* [HHH-14059] - Cannot use full qualified enum name which has two uppercase alphabet prefix
* [HHH-14041] - H2Dialect does not correctly extract violated constraint names for 23506
* [HHH-14021] - Using AttributeConverter to Byte fails with "No dialect mapping for JBDC Type: <697960108>"
* [HHH-13931] - MissingFormatArgumentException in JpaCompliantLifecycleStrategy.BeanImpl
* [HHH-13926] - StaleStateException message should not contain SQL parameters
* [HHH-13410] - "order_inserts = true" causes FK Violation when inserting with a special case of Unidirectional Relations between 4 Entities
* [HHH-13214] - DML batch delete re-firing SQL from previous calls
* [HHH-12268] - LazyInitializationException thrown from lazy collection when batch fetching enabled and owning entity refreshed with lock
** Improvement
* [HHH-14100] - Update c3p0 to 0.9.5.5
* [HHH-14093] - Optimize inserted key contains
** New Feature
* [HHH-13724] - Support CockroachDB
** Task
* [HHH-14111] - Upgrade build dependencies to test JDK15/JDK16
* [HHH-14103] - Add test cases showing that an entity's transient attribute can be overridden to be persistent in entity subclasses
* [HHH-14096] - Removal of unused code: XMLHelper and its SAXReader factory helper
Changes in 5.4.18.Final (June 22, 2020)
------------------------------------------------------------------------------------------------------------------------
https://hibernate.atlassian.net/projects/HHH/versions/31861
** Bug
* [HHH-14081] - CompositeIdFkGeneratedValueIdentityTest and CompositeIdFkGeneratedValueTest failures on Oracle db
* [HHH-14077] - CVE-2019-14900 SQL injection issue using JPA Criteria API
** Improvement
* [HHH-14083] - Gradle, add task to automate the CI release process
* [HHH-14023] - H2: Adapt to sequence and column types changes in 1.4.201
** Task
* [HHH-14075] - Changes to loaders and TwoPhaseLoad to allow "internal" loading to be reused by hibernate-reactive
Changes in 5.4.17.Final (May 29, 2020)
------------------------------------------------------------------------------------------------------------------------
https://hibernate.atlassian.net/projects/HHH/versions/31858/tab/release-report-done
** Bug
* [HHH-10956] - Persisting partially-generated composite Ids fails with HibernateException: No part of a composite identifier may be null
* [HHH-13959] - Add nullability and uniqueness for @OneToOne with @JoinTable
* [HHH-14022] - Oracle-Dialect does not find Sequences outside User-Schema
* [HHH-14030] - hibernate-orm fails to build locally on German Win10
** Task
* [HHH-14044] - Extract code from Loader into protected methods
** Patch
* [HHH-14046] - Allow customizing the type of SessionFactory by changing the initial ServiceInitiator list
* [HHH-14047] - Extensions points of EntityManagerFactoryBuilderImpl for Hibernate Reactive
* [HHH-14048] - Expose lazy property fetching to Hibernate Reactive
* [HHH-14049] - AbstractEntityPersister make three private methods protected for use in Hibernate Reactive
Changes in 5.4.16.Final (May 18, 2020)
------------------------------------------------------------------------------------------------------------------------
https://hibernate.atlassian.net/projects/HHH/versions/31851/tab/release-report-done
** Bug
* [HHH-13179] - Unionsubclass 2nd level caching no longer works for XML mappings in 5.3 and 5.4
* [HHH-13936] - No auto transaction joining from SessionImpl.doFlush
* [HHH-14004] - Enhanced Proxies are never loaded from 2LC
** New Feature
* [HHH-14019] - Allow customizing the Database target in the Schema Management tool
* [HHH-14024] - Allow the creation of a different QueryPlan
* [HHH-14025] - Add getter for update statements in query translator
* [HHH-14027] - Allow the creation of a different QueryLoader
* [HHH-14028] - Hibernate Reactive needs access to some private methods for support of reactive queries
** Task
* [HHH-13997] - Add methods to SessionImpl and StatefulPersistenceContext; make Loader#registerNonExists protected
* [HHH-14012] - Upgrade to Hibernate Validator 6.1.5.Final
** Improvement
* [HHH-13996] - Update documentation for HANA Cloud
* [HHH-14026] - Change scope for SessionImple#verifyImmutableEntityUpdate
* [HHH-14029] - Small optimisation in firing of PostLoadEventListener(s)
Changes in 5.4.15.Final (April 30, 2020)
------------------------------------------------------------------------------------------------------------------------
https://hibernate.atlassian.net/projects/HHH/versions/31841/tab/release-report-done
** Bug
* [HHH-11903] - @OneToOne Derived ID is null when returned by query when bidirectional
** New Feature
* [HHH-13917] - Add support for HANA Cloud
* [HHH-13976] - Add BEFORE_TRANSACTION_COMPLETION release mode
** Task
* [HHH-13948] - EnhancedSetterImpl should define writeReplace
* [HHH-13953] - Upgrade dom4j to 2.1.3
* [HHH-13977] - Upgrade to Agroal 1.8
* [HHH-13981] - Upgrade to Jandex 2.1.3.Final
* [HHH-13986] - SequenceHiLoGeneratorNoIncrementTest is not testing the right Optimiser
* [HHH-13992] - Upgrade to ByteBuddy 1.10.10
** Improvement
* [HHH-13960] - Add SAXReader sec features to match the defaults
* [HHH-13993] - Bootstrap analysis: avoid initializing many Dialect classes
* [HHH-13994] - Bootstrap analysis: avoid initializing unused JtaPlatform classes
* [HHH-13995] - Remove dead code from StandardBasicTypes
Changes in 5.4.14.Final (April 6, 2020)
------------------------------------------------------------------------------------------------------------------------
https://hibernate.atlassian.net/projects/HHH/versions/31836/tab/release-report-done
** Bug
* [HHH-13886] - ColumnDefinition broken for audit mappings
* [HHH-13889] - Case Select in Criteria API does not bind literals using parameters
* [HHH-13929] - ClassCastException on use of PersistenceUtilHelper when entities use Enhanced Proxies
** Task
* [HHH-13685] - Upgrade to Gradle 5
* [HHH-13689] - Replace uses of the deprecated osgi plugin with the biz.aQute.bnd plugin
* [HHH-13925] - Upgrade to Gradle 6.3
** Improvement
* [HHH-13930] - Improve ByteBuddyProxyHelper to allow defining proxy classes without actually loading the class
* [HHH-13934] - GraalVM native-image metadata needs to register class metadata antlr.CommonToken
* [HHH-13935] - Allow subclasses of StandardServiceRegistryBuilder to initialize a custom list of StandardServiceInitiator(s)
Changes in 5.4.13.Final (March 26, 2020)
------------------------------------------------------------------------------------------------------------------------
https://hibernate.atlassian.net/projects/HHH/versions/31829/tab/release-report-done
** Bug
* [HHH-13322] - Sequence increment is not correctly determined
* [HHH-13619] - size() does not work properly as select expression
* [HHH-13711] - H2 dialect not accurate for drop table since version 1.4.200
* [HHH-13870] - Gradle plugin causes compile task to be always out of date
* [HHH-13875] - Optional one-to-one does not always join the associated entity table when querying
* [HHH-13876] - Fix an obvious bug in StandardStack implementation
* [HHH-13891] - ProxyFactory should not be built if any ID or property getter/setter methods are final
* [HHH-13910] - MySQL57Dialect selected by automatic dialect resolution when using MySQL 8.0 database
** New Feature
* [HHH-13799] - JPA Criteria API support for Hibernate Spatial
** Task
* [HHH-13874] - Deprecate relevant methods that are supposed to be removed in v6.0
** Improvement
* [HHH-13103] - Allow Hibernate Types to get access to the current configuration properties using constructor injection
* [HHH-13853] - Pass the merged Integration settings and Persistence Unit properties to buildBootstrapServiceRegistry
* [HHH-13855] - Remove unnecessary declaration of JtaManager in HibernatePersistenceProviderAdaptor
* [HHH-13872] - Make the Java Stream close the underlying ScrollableResultsIterator upon calling a terminal operation
* [HHH-13873] - IdTableHelper can skip opening a connection when there's no statements to execute
* [HHH-13878] - Increase the scope of some methods to make them accessible outside of Hibernate ORM
* [HHH-13879] - Slow query log should use System#nanoTime not System#currentTimeMillis
* [HHH-13897] - ResultSetProcessingContextImpl: no need to clear collections before discarding the reference to them
Changes in 5.4.12.Final (February 13, 2020)
------------------------------------------------------------------------------------------------------------------------
https://hibernate.atlassian.net/projects/HHH/versions/31827/tab/release-report-done
** Bug
* [HHH-13858] - Fix Oracle failing tests
* [HHH-13859] - NPE on scanning for entities in a project having module-info.class resources
** New Feature
* [HHH-13861] - Expose the doWork() and doReturningWork() APIs on StatelessSession as well
* [HHH-13863] - Introduce a module to distribute some helpers useful to compile Hibernate ORM to GraalVM native images
** Improvement
* [HHH-13864] - Cosmetic change of format when reporting version number
Changes in 5.4.11.Final (February 07, 2020)
------------------------------------------------------------------------------------------------------------------------
https://hibernate.atlassian.net/projects/HHH/versions/31818/tab/release-report-done
** Bug
* [HHH-6615] - int type in Revision number
* [HHH-6686] - JPQL operator "is empty" failes for @ElementCollection
* [HHH-10844] - Resolve columnDefinition to appropriate sql-type for audit mappings
* [HHH-13373] - Hibernate report query hibernate_sequence table error in spring-boot application starting on a multi-database mariadb server
* [HHH-13456] - ForeignGenerator Throws ClassCastException When Using StatelessSession
* [HHH-13472] - Error creating hibernate_sequence in MariaDB 10.3
* [HHH-13644] - NullPointerException when calling StoredProcedureQuery.getResultStream() instead of StoredProcedureQuery.getResultList()
* [HHH-13677] - org.hibernate.flushMode property not applied
* [HHH-13704] - Make sure javassist is really an optional dependency
* [HHH-13752] - Delete doesn't work when many-to-many uses non-primary key for join table
* [HHH-13759] - Bytecode enhancement fails for an embedded field in a MappedSuperclass
* [HHH-13760] - Envers tries to use relationship's entity as value for column instead of numeric identifier (cast class exception happens) for LAZY @ManyToOne
* [HHH-13770] - Envers - modified flag column value set to null from 5.4.7 onwards
* [HHH-13780] - Allow NamedQuery to set hint QueryHints.PASS_DISTINCT_THROUGH
* [HHH-13783] - org.hibernate.MappingException: The increment size of the sequence is set to [10] in the entity mapping while … size is [1]
* [HHH-13792] - L2 entity cache is evicted prior to committing transaction for HQL/native updates
* [HHH-13796] - Missing from clause in query from BinaryLogicOperatorNode row value constructor translation
* [HHH-13804] - HibernateProxy might need to be instantiated even with build-time enhancement
* [HHH-13806] - CoreMessageLogger#unableToLoadCommand is not printing the cause of the error
* [HHH-13808] - Incorrect String format in log
* [HHH-13831] - Replaced listener is not called when EventListenerGroup#fireEventOnEachListener is called
** Task
* [HHH-13726] - Extract org.hibernate.internal.SessionFactoryImpl#prepareEventListeners from SessionFactoryImpl
* [HHH-13767] - Remove mention of Oracle and DB2 not being in MC
* [HHH-13821] - Update to Byte Buddy 1.10.7
* [HHH-13822] - OSGi integration tests need to be able to download dependencies from Maven Central using HTTPS
* [HHH-13823] - Various visibility changes to help prototyping of Hibernate RX
* [HHH-13833] - Byte Buddy enhancer should use ASM7 opcodes to improve compatibility with code compiled for Java 11
* [HHH-13837] - Initialize the Hibernate VERSION as a real constant
* [HHH-13838] - Allow extension of PersistenceXmlParser
* [HHH-13849] - Convert ProxyFactoryFactory and BytecodeProvider into a Service
** Improvement
* [HHH-8776] - Ability for JPA entity-graphs to handle non-lazy attributes as lazy
* [HHH-11958] - Apply QueryHints.HINT_READONLY to load operations
* [HHH-12856] - Upgrade DB2400 dialect to use the DB2 for i improvements
* [HHH-13390] - Upgrade JPA MetaModel Generator (jpamodelgen) to support Gradle Incremental Compile
* [HHH-13800] - Correct some typos in the javadocs of hibernate-core module
* [HHH-13802] - fix javadoc warnings in 'hibernate-core'
* [HHH-13809] - Various improvements in the user guides
* [HHH-13830] - Fixing typo on the build task description
* [HHH-13832] - Optimise setting of default Flush Mode on a newly created Session
* [HHH-13850] - Clear the BytecodeProvider caches both after SessionFactory creation and stop
* [HHH-13851] - Rework initialization of ProxyFactoryFactory to move responsibility out of PojoEntityTuplizer
* [HHH-13854] - Allow extensions of StandardServiceRegistryBuilder to ignore Environment variables
Changes in 5.4.10.Final (December 05, 2019)
------------------------------------------------------------------------------------------------------------------------
https://hibernate.atlassian.net/projects/HHH/versions/31811/tab/release-report-done
** Bug
* [HHH-9301] - Group by on alias doesn't replace alias
* [HHH-12895] - Extra LEFT JOIN generated with @ManyToOne and @JoinTable when projecting on main entity id
* [HHH-13355] - StaleStateException for updates to optional secondary table using saveOrUpdate
* [HHH-13365] - Entities in joined subclass table are not inserted with batch size > 0 using sequence-identity ID generator
* [HHH-13608] - Oracle8iDialect should use CASE_INSENSITIVE pattern matching when checking the statement type
* [HHH-13722] - ArrayStoreException in Constraint.generateName
* [HHH-13737] - Add debug logging and a test case for HHH-13433
* [HHH-13742] - Missing from clause with joined inheritance property in association subquery
* [HHH-13758] - Limit Handler for SQL server doesn't work with CTE queries with strings literals
* [HHH-13764] - Annotations are ignored during enhancement if they are on the getter instead of the field
** Task
* [HHH-13739] - Upgrade to Agroal 1.7
* [HHH-13761] - Debug logging of JPA compliance settings didn't log the value of the settings
* [HHH-13762] - Update vibur-dbcp dependency to 25.0
** Improvement
* [HHH-8091] - Hibernate produces SQL - "in ()" - which is invalid in at least Oracle, MySQL and Postgres
* [HHH-13755] - Update Hibernate Gradle Plugin example in the documentation
Changes in 5.4.9.Final (November 14, 2019)
------------------------------------------------------------------------------------------------------------------------
https://hibernate.atlassian.net/projects/HHH/versions/31806/tab/release-report-done
** Bug
* [HHH-12030] - Symbol$TypeVariableSymbol cannot be cast to TypeElement
* [HHH-13307] - On release of batch it still contained JDBC statements using JTA
* [HHH-13433] - EntityManager.find() should only check for roll-back-only condition if there is an active JTA transaction, otherwise ORM should throw convert( e, lockOptions )
* [HHH-13614] - Allow the IntegratorProvider to be supplied via its FQN in the JPA persistence.xml
* [HHH-13670] - Missing from clause in query with joined inheritance, regression in 5.4.5
* [HHH-13687] - TenantSchemaResolver not called in integration test after upgrade from 5.4.4 to >=5.4.5
* [HHH-13690] - Multi-tenancy supporting session factories can not be created
* [HHH-13698] - Hibernate does not recognize MySQL 8 error code 3572 as PessimisticLockException
* [HHH-13700] - Configuration property CONNECTION_PROVIDER_DISABLES_AUTOCOMMIT should not be passed to the JDBC connection properties
* [HHH-13705] - Enhancement as Proxy with inline dirty checking - flush of an @ManyToOne with an Embedded value having not null properties causes PropertyValueException
* [HHH-13710] - Wrong tenant-identifier in Envers temporary session
* [HHH-13712] - inheritance - select count query is not working with inheritance
* [HHH-13727] - h2 database with DATABASE_TO_UPPER=false throws org.h2.jdbc.JdbcSQLSyntaxErrorException: Table "sequences" not found
** Task
* [HHH-13730] - Upgrade to Classmate 1.4.0
* [HHH-13731] - Upgrade to Classmate 1.5.1
* [HHH-13733] - Upgrade to Jandex 2.1.1.Final
** Improvement
* [HHH-13654] - Avoid clearing of collections when closing StatefulPersistenceContext
* [HHH-13723] - Hint sizing of ArrayList in ResultSetProcessingContextImpl
Changes in 5.4.8.Final (October 28, 2019)
------------------------------------------------------------------------------------------------------------------------
https://hibernate.atlassian.net/projects/HHH/versions/31804/tab/release-report-done
** Bug
* [HHH-12965] - Hibernate Envers Audit tables are created with foreign key with the entity. Because of this I am not able to delete any entries from the entity tables.
* [HHH-13446] - java.lang.VerifyError from compile-time enhanced @Entity
* [HHH-13651] - NPE on flushing when ElementCollection field contains null element
* [HHH-13695] - DDL export forgets to close a Statement
* [HHH-13696] - Multiple OSGi bundles initializing concurrently would overlap classloaders
** Improvement
* [HHH-13686] - Upgrade to Agroal 1.6
Changes in 5.4.7.Final (October 21, 2019)
------------------------------------------------------------------------------------------------------------------------
https://hibernate.atlassian.net/projects/HHH/versions/31799/tab/release-report-done
** Bug
* [HHH-4235] - MapBinder.createFormulatedValue() does not honor DB schema name when creating query
* [HHH-13633] - Bugs join-fetching a collection when scrolling with a stateless session using enhancement as proxy
* [HHH-13634] - PersistenceContext can get cleared before load completes using StatelessSessionImpl
* [HHH-13640] - Uninitialized HibernateProxy mapped as NO_PROXY gets initialized when reloaded with enhancement-as-proxy enabled
* [HHH-13653] - Uninitialized entity does not get initialized when a setter is called with enhancement-as-proxy enabled
* [HHH-13655] - Envers Map<Enum, Integer> causes NullPointerException when mapped with @MapKeyEnumerated since Hibernate 5.4.6
* [HHH-13663] - Session#setHibernateFlushMode() method not callable without an active transaction
* [HHH-13665] - Selecting an entity annotated with @Immutable but not with @Cachable causes a NPE when use_reference_entries is enabled
* [HHH-13672] - The temporary PersistenceContext of a StatelessSession is not cleared after a refresh operation
* [HHH-13675] - Optimize PersistentBag.groupByEqualityHash()
** New Feature
* [HHH-10398] - _MOD columns not named correctly when using custom column names
** Task
* [HHH-13680] - Upgrade to Byte Buddy 1.10.2
* [HHH-13681] - Upgrade to Byteman 4.0.8
** Improvement
* [HHH-12858] - integration overrides during JPA bootstrap ought to override all logically related settings
* [HHH-13432] - Have EntityManagerFactory expose persistence.xml `jta-data-source` element as a `javax.persistence.nonJtaDataSource` property
* [HHH-13660] - Reduce allocation costs of IdentityMaps used by ResultSetProcessingContextImpl
* [HHH-13662] - Avoid initializing XmlMappingBinderAccess when no XML mappings are defined
* [HHH-13666] - AssertionFailure: Exception releasing cache locks upon After/BeforeTransactionCompletionProcess failure
* [HHH-13673] - Cryptic error when providing import.sql file without a terminal char at the end of each line
Changes in 5.4.6.Final (September 30, 2019)
------------------------------------------------------------------------------------------------------------------------
https://hibernate.atlassian.net/projects/HHH/versions/31794/tab/release-report-done
** Bug
* [HHH-11797] - Envers Map<Enum, Entity> not auditing correctly
* [HHH-13493] - For a native query, the SessionImpl class does not call applyQuerySettingsAndHints
* [HHH-13597] - Building DatabaseInformation fails on H2 without DATABASE_TO_UPPER
* [HHH-13625] - After upgrading to 5.4.5, it's no longer possible to bootstrap Hibernate if the org.hibernate.cfg LOG is set to DEBUG
* [HHH-13645] - StatsNamedContainer#getOrCompute throws NullPointerException when computed value is null
** Improvement
* [HHH-13130] - Provide Gradle-based bytecode enhancement as a task separate from the compileJava task
Changes in 5.4.5.Final (September 17, 2019)
------------------------------------------------------------------------------------------------------------------------
https://hibernate.atlassian.net/projects/HHH/versions/31779/tab/release-report-done
** Bug
* [HHH-13259] - StackOverflowError from StringHelper
* [HHH-13466] - ClassCastException when changing a Collection association to a Set if @PreUpdate listener exists
* [HHH-13544] - Restore logged warning on jdbc code mapping issue in NationalizedTypeMappings
* [HHH-13550] - Fix Oracle failure for test added by HHH-13424
* [HHH-13551] - StrategyRegistrationProvider does not properly handle implementations from different classloader
* [HHH-13554] - QueryAndSQLTest.testNativeQueryWithFormulaAttributeWithoutAlias() fails on Oracle, MSSQL, Sybase, DB2, MariaDB
* [HHH-13555] - FetchGraphTest, MergeProxyTest and ProxyDeletionTest fail due to ConstraintViolationException
* [HHH-13556] - Tests doing dynamic fetch scrolling a collection fail on DB2
* [HHH-13557] - LocalTimeTest#writeThenNativeRead and OffsetTimeTest#writeThenNativeRead tests are failing on SQL Server
* [HHH-13558] - InstantTest, LocalDateTimeTest, OffsetDateTimeTest, ZonedDateTimeTest failing on Sybase for year 1600
* [HHH-13564] - Envers - Getting NPE while reading revisions of entity with @EmbeddedId composite key located in parent @MappedSuperclass
* [HHH-13569] - org.hibernate.test.annotations.embedded.EmbeddedTest failures on Sybase
* [HHH-13570] - Test failures due to Sybase not supporting UPDATE statement with WITH(NOWAIT)
* [HHH-13571] - Test failures due to cross joined table out of scope of a subsequent JOIN on Sybase
* [HHH-13573] - Test failure due to Sybase not supporting cascade delete on foreign key definitions
* [HHH-13574] - SybaseASE does not support PARTITION BY
* [HHH-13577] - LockTest.testContendedPessimisticLock and StatementIsClosedAfterALockExceptionTest.testStatementIsClosed tests fail on Sybase
* [HHH-13580] - LocalTimeTest#writeThenNativeRead* and OffsetTimeTest#writeThenNativeRead* failing on MySQL
* [HHH-13581] - LocalTimeTest#writeThenRead* and OffsetTimeTest#writeThenRead* failing on MariaDB
* [HHH-13582] - LocalDateTest failures on MySQL
* [HHH-13586] - ClassCastException when using a single region name for both entity and query results
* [HHH-13590] - TransientObjectException merging a non-proxy association to a HibernateProxy
* [HHH-13592] - AutoFlushEvent#isFlushRequired is always false
* [HHH-13607] - Exception thrown while flushing uninitialized enhanced proxy with immutable natural ID
* [HHH-13611] - Restore EntityMetamodel constructor to take SessionFactoryImplementor argument instead of PersisterCreationContext.
* [HHH-13616] - Enable the hibernate-orm-modules test for JDK 11
* [HHH-13621] - Exception if spaces after value of javax.persistence.schema-generation.scripts.action in hibernate.properties
** New Feature
* [HHH-13249] - Introduce an option to Log slow queries instead of all queries
** Task
* [HHH-13525] - Make test SessionDelegatorBaseImplTest more resilient to previously existing alias definition
* [HHH-13526] - Optimise ResourceRegistryStandardImpl#release
* [HHH-13527] - Performance regression in org.hibernate.stat.internal.StatisticsImpl
* [HHH-13528] - Invoke afterStatements only at the end of releasing all statements for a batch
* [HHH-13529] - Performance regression in org.hibernate.engine.spi.SessionFactoryImplementor#getDialect
* [HHH-13531] - Some more opportunities to reuse the constants pool in AliasConstantsHelper
* [HHH-13534] - AbstractLoadPlanBasedLoader never needs a List of AfterLoadAction
* [HHH-13546] - Make the sessionFactory field in StatisticsImpl required
* [HHH-13549] - Cleanup dead code in StringHelper
* [HHH-13552] - CollectionType needs a direct reference to its Persister
* [HHH-13553] - Fix test failures on SAP HANA
* [HHH-13561] - Do not retrieve the same ActionQueue multiple times
* [HHH-13562] - List of TransactionObserver for JdbcResourceLocalTransactionCoordinatorImpl should be lazily initialized
* [HHH-13563] - ResultSetReturnImpl is looking up JdbcServices on each construction
* [HHH-13565] - Improve Session opening efficiency
* [HHH-13568] - Instances of NaturalIdXrefDelegate should be lazily initialized if possible
* [HHH-13605] - InstantTest, OffsetDateTimeTest, ZonedDateTimeTest fail for MariaDB on CI
* [HHH-13606] - LocalDateTimeTest fails for HANA on CI
* [HHH-13622] - Upgrade the WildFly Transaction Client to 1.1.7.Final
** Improvement
* [HHH-13133] - Print message about 'successfully enhanced class' as debug in Maven enhancement plugin
* [HHH-13412] - Move hibernate.connection description out of c3p0 section
* [HHH-13512] - Avoid allocating an array in org.hibernate.internal.util.StringHelper#unquote(String[], Dialect) if there are no changes to be applied
* [HHH-13521] - Avoid excessive validation of enabled filters
* [HHH-13522] - Optimise LoadQueryInfluencers by making maps lazily initialized
* [HHH-13523] - StatementPreparerImpl should not need to retrieve the JDBCService as often
* [HHH-13524] - Remove unused fields xref,unassociatedResultSets from JdbcCoordinatorImpl
* [HHH-13541] - ExceptionConverter instance in AbstractSharedSessionContract should be lazily initialized
* [HHH-13548] - Since SessionOwner is deprecated several fields in SessionImpl can be removed
* [HHH-13576] - Invoking tracef() or debugf() w/o an array of parameters actually allocates an empty Object[]
* [HHH-13579] - Cleanup of resources in ResourceRegistryStandardImpl allocates many Iterators
* [HHH-13584] - Reduce ServiceRegistry lookups in LocalConnectionAccess in SessionFactory
* [HHH-13585] - Duplicate resource release in PessimisticReadSelectLockingStrategy
* [HHH-13587] - Initialize selected collections of StatefulPersistenceContext lazily
* [HHH-13588] - MySQL Dialect: missed functions: weight_string, to_base64, from_base64, regexp_replace, regexp_instr, regexp_substr
* [HHH-13589] - Minor memory allocation improvements in ActionQueue
* [HHH-13591] - Replaces simple uses of array iteration with a corresponding for-each loop
* [HHH-13594] - ResourceRegistryStandardImpl#release could avoid allocating a capturing lambda
* [HHH-13599] - Avoid ArrayList allocation in JtaTransactionCoordinatorImp in common scenario
* [HHH-13600] - Avoid allocation of capturing lambdas in ParameterTranslationsImpl and AbstractDomainDataRegion
** Deprecation
* [HHH-13595] - Deprecate ConnectionObserver
Changes in 5.4.4.Final (July 29, 2019)
------------------------------------------------------------------------------------------------------------------------
https://hibernate.atlassian.net/projects/HHH/versions/31774/tab/release-report-done
** Bug
* [HHH-12642] - Lazy enhanced entity as relationship is always loaded in a criteria query
* [HHH-13357] - OffsetTimeTest fails using TimeAsTimestampRemappingH2Dialect in non-GMT European time zones
* [HHH-13379] - Regression of Instant serialization
* [HHH-13409] - Hibernate ORM does not detect services provided by libraries in the module path
* [HHH-13424] - Table nullability should not depend on JpaCompliance.isJpaCacheComplianceEnabled()
* [HHH-13443] - Build failing to parse *.properties file attributes containing trailing space
* [HHH-13454] - org.hibernate.orm.test.query.criteria.BasicCriteriaExecutionTests fails on Oracle
* [HHH-13455] - Enabling Enhancement as a Proxy causes IllegalStateException when using Javassist
* [HHH-13459] - Unit test lock up when they run on PostgreSQL
* [HHH-13460] - FetchGraphTest is failing on MariaDB
* [HHH-13463] - Hibernate has a dependency on plexus-utils:3.0.1 that is vulnerable to CVE-2017-1000487 with a CVSS of 7.5
* [HHH-13492] - OptimisticLockException after locking, refreshing, and updating an entity
* [HHH-13500] - Subquery of DefaultAuditStrategy results in a wrong revision
* [HHH-13505] - NullPointerException thrown by StatisticsImpl#getCacheRegionStatistics
* [HHH-13514] - Calling the wrong method inside SessionDelegatorBaseImpl#createStoredProcedureQuery
** New Feature
* [HHH-11147] - Allow enhanced entities to be returned in a completely uninitialized state
* [HHH-13154] - Add support for JPA criteria on stateless sessions
** Task
* [HHH-13415] - Improve build compatibility with JDK11.0.3
* [HHH-13461] - Style and formatting fixes: CollectionEntry
* [HHH-13504] - Upgrade ByteBuddy to 1.9.11
* [HHH-13513] - Partial revert of string interning introduced by HHH-3924
* [HHH-13520] - Deprecate mutators on SqlStatementLogger
** Improvement
* [HHH-11032] - Improve performance of PersistentBag.equalsSnapshot
* [HHH-13226] - Typo in some configuration properties (HBM2DDL vs HBM2DLL)
* [HHH-13303] - Fix some alerts from LGTM
* [HHH-13428] - Minor cleanup of build scripts
* [HHH-13429] - Upgrade WildFly provisioning plugin to version 0.0.11
* [HHH-13442] - CollectionType#getCollection() method improvements
* [HHH-13444] - Remove ignored EntityMode field from CollectionKey
* [HHH-13447] - Minimize number of EventListenerRegistry lookups within a Session use
* [HHH-13448] - Avoid retrieving PRE_LOAD and POST_LOAD Event listeners within the inner loops of TwoPhaseLoad
* [HHH-13450] - Do not compute the full role name of a collection unless necessary
* [HHH-13451] - Logging typo in CascadingActions causing significant allocations
* [HHH-13452] - Missing log level guard on formatting in DefaultPersistEventListener#entityIsDeleted
* [HHH-13453] - Optimise CascadingActions for the most likely case
* [HHH-13458] - Update Hibernate's custom IdentityMap to better match its use
* [HHH-13462] - Introduce a fastpath for SessionImpl#fireLoad to be used by internal loops
* [HHH-13465] - Allow inlined access to the PersistenceContext for internal methods
* [HHH-13467] - Make average BatchFetchQueue consume less memory
* [HHH-13471] - Avoid invoking delayedAfterCompletion() multiple times from the same SessionImpl method
* [HHH-13475] - SessionImpl#applyQuerySettingsAndHints should not rely on defensive copies to just read properties
* [HHH-13476] - Micro-optimisations of TwoPhaseLoad#getOverridingEager
* [HHH-13477] - Make heavily invoked method final: EventListenerGroupImpl#listeners()
* [HHH-13478] - Various low hanging fruits identified by CPU flame graphs
* [HHH-13494] - LobTypeMappings should not use a Bounded ConcurrentHashmap
* [HHH-13495] - NationalizedTypeMappings should not use a Bounded ConcurrentHashmap
* [HHH-13496] - Apply some minor yet improvements identified via static code analysis tools
* [HHH-13508] - Reuse alias names generated by BasicLoader#generateSuffixes
* [HHH-13511] - Remove old org.hibernate.loader.DefaultEntityAliases#intern
Changes in 5.4.3.Final (May 30, 2019)
------------------------------------------------------------------------------------------------------------------------
https://hibernate.atlassian.net/projects/HHH/versions/31762/tab/release-report-done
** Bug
* [HHH-13343] - Bytecode enhancement using ByteBuddy fails when the class is not available from the provided ClassLoader
* [HHH-13364] - Query.getSingleResult and getResultList() throw PessimisticLockException when pessimistic lock fails with timeout
* [HHH-13418] - Revert log level caching in static fields
** Task
* [HHH-13416] - Unguarded debug message being rendered in org.hibernate.engine.internal.Collections.processReachableCollection
* [HHH-13419] - Support building javadoc with JDK 11.0.3
* [HHH-13421] - Disable OSGi testing for JDK 11+
Changes in 5.4.2.Final (March 21, 2019)
------------------------------------------------------------------------------------------------------------------------
https://hibernate.atlassian.net/projects/HHH/versions/31748/tab/release-report-done
** Bug
* [HHH-13194] - Some methods returning org.hibernate.query.Query are not defined for StatelessSession
* [HHH-13216] - Criteria query doesn't handle BigDecimal correctly
* [HHH-13217] - Don't throw exception if both @MappedSuperclass and @Inheritance are used
* [HHH-13219] - The sentence "The chapter 6 (e.g. Criteria API)" should be "The chapter 6 (i.e., Criteria API)"
* [HHH-13225] - Fix minor version detection in BasicDialectResolver
* [HHH-13227] - UnsupportedOperationException when programmatically overriding hibernate.ejb.cfgfile
* [HHH-13228] - The modification of a @OneToOne with @MapsId property is silently ignored during a merge operation
* [HHH-13229] - Sequences in MariaDB doesnt work on existing sequence
* [HHH-13230] - The AvailableSettings.HBM2DDL_HALT_ON_ERROR setting does not accept String values
* [HHH-13233] - Eager loading via EntityGraph doesn't work with subgraph
* [HHH-13236] - @Column insertable and updatable on ElementCollection items' fields are ignored when generating statements
* [HHH-13239] - The query hint javax.persistence.lock.timeout doesn't work correctly on HANA
* [HHH-13241] - Constraint violation when deleting entites in bi-directional, lazy OneToMany association with bytecode enhancement
* [HHH-13244] - setting hibernate.jpa.compliance.proxy=true and org.hibernate debug level to DEBUG breaks hibernate
* [HHH-13256] - Fix the fieldsPreUpdateNeeded property index allocation in AbstractEntityPersister#update
* [HHH-13262] - javax.persistence.TransactionRequiredException: Executing an update/delete query
* [HHH-13265] - Remove double semicolon
* [HHH-13266] - LocalDateTime values are wrong around 1900 (caused by JDK-8061577)
* [HHH-13269] - Embeddable collection regression due to HHH-11544
* [HHH-13277] - HibernateMethodLookupDispatcher - Issue with Security Manager
* [HHH-13281] - java.lang.ClassCastException: org.hibernate.internal.SessionImpl cannot be cast to org.hibernate.ejb.HibernateEntityManager
* [HHH-13285] - ClassCastException: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory after dom4j update
* [HHH-13300] - query.getSingleResult() throws org.hibernate.NonUniqueResultException instead of javax.persistence.NonUniqueResultException
* [HHH-13309] - Extended bean managers implementing the new interface are not correctly detected
* [HHH-13324] - NullPointerException if security manager is set after startup
* [HHH-13326] - Transaction passed to Hibernate Interceptor methods is null when JTA is used
** New Feature
* [HHH-13202] - Add support for PostgreSQL "GENERATED BY DEFAULT AS IDENTITY"
** Task
* [HHH-13232] - Upgrade ByteBuddy to 1.9.8
* [HHH-13238] - Reuse static logger in QueryTranslatorFactoryInitiator
* [HHH-13254] - Upgrade Agroal to 1.4
* [HHH-13258] - ASTQueryTranslatorFactory.createQueryTranslator undocumented Parameter
* [HHH-13271] - Javadoc build failures on JDK 12
* [HHH-13272] - Upgrade to Byte Buddy 1.9.10
* [HHH-13275] - Re-introduce usage of net.bytebuddy.experimental=true when testing on JDK > 11
* [HHH-13304] - MySQLDialect shouldn't access System Properties
* [HHH-13305] - Deprecate public static helpers returning the current Dialect
* [HHH-13306] - Remove verbose logging from the standard ExceptionMapper
* [HHH-13332] - Upgrade to c3p0 0.9.5.3
** Improvement
* [HHH-6190] - Leverage JmxService to expose management and monitoring capabilities.
* [HHH-10148] - SQLServer2012SpatialDialect
* [HHH-13220] - In the ByteBuddy enhancer, avoid creating a PersistentAttributeTransformer if the class is not enhanced
* [HHH-13257] - Support mysql8 spatial
** Patch
* [HHH-13330] - Minor typo in ManagedBeanRegistryInitiator
Changes in 5.4.1.Final (January 19, 2019)
------------------------------------------------------------------------------------------------------------------------
https://hibernate.atlassian.net/projects/HHH/versions/31726/tab/release-report-done
** Bug
* [HHH-11807] - Enhanced entity delete not cascaded for some case
* [HHH-12555] - Merging a blob on an entity results in a class cast exception
* [HHH-13059] - OneToMany with referencedColumnName returns too many entities
* [HHH-13068] - "order_inserts = true" causes FK Violation when inserting Self Referential Entity with Single_Table Inherited Entities
* [HHH-13080] - ManyToMany List update with detached entities throws EntityExistsException
* [HHH-13084] - Querying entity with non-ID property named 'id' fails if entity has an IdClass composite key
* [HHH-13094] - Setting @Any.fetch to FetchType.EAGER doesn't work
* [HHH-13104] - Oracle 12c / SAP Hana insert fails when entity contains only an identity-based column.
* [HHH-13114] - Query "select count(h) from Human h" fails if a subclass has a non-Id property named "id"
* [HHH-13129] - Cascaded merge fails for detached bytecode-enhanced entity with uninitialized ToOne
* [HHH-13138] - Work around class loading issues so that bytecode enhanced tests can run as expected
* [HHH-13145] - Generated metamodel class can't be compiled.
* [HHH-13146] - Hibernate Ehcache no longer supports the `net.sf.ehcache.hibernate.cache_lock_timeout` configuration property
* [HHH-13151] - TreatedRoot misses fetches in query
* [HHH-13153] - No content in 15.1. Query API of User Guide
* [HHH-13160] - Polymorphic query for InheritanceType.TABLE_PER_CLASS is not using UNION ALL
* [HHH-13163] - Fix DDLWithoutCallbackTest#testRangeChecksGetApplied which fails on MariaDB
* [HHH-13164] - Detecting transient state of mandatory toOne relations is broken
* [HHH-13167] - When omitting the OTHERWISE clause in a CASE expression built with Criteria API, Hibernate throws a NullPointerException
* [HHH-13169] - Table alias used instead of exact table name in multitable update query
* [HHH-13172] - Log a warning instead of throwing an Exception when @AttributeOverride is used in conjunction with inheritance
* [HHH-13175] - Eager subsequent-select fails when EntityGraph is specified for find operation
* [HHH-13184] - Oracle dialect detection does not return latest dialect in the default case
* [HHH-13189] - org.hibernate.Query#setParameter(String, Object) is extremely slow
* [HHH-13191] - LazyInitializationException when Envers persists audit data that uses a proxy with JPA_PROXY_COMPLIANCE enabled under JTA
* [HHH-13192] - Select alias in Criteria API seems to bleed into where condition
* [HHH-13199] - NullPointerException when using case on select clause using JPA Criteria API
** New Feature
* [HHH-13204] - Introduce a configuration flag to skip processing of XML mapping metadata
* [HHH-13209] - Experimental feature: Allow for ServiceRegistry "suspend and restore"
** Task
* [HHH-13197] - Reduce bootstrap log verbosity
* [HHH-13198] - Introduce a global configuration flag to disable JPA callbacks
* [HHH-13210] - Don't log about running a script of type ScriptSourceInputNonExistentImpl
* [HHH-13211] - Reduce logging verbosity of QueryTranslatorFactoryInitiator
** Improvement
* [HHH-12878] - StaleStateException does not log out the stale object or the statement that was executed
* [HHH-13162] - Upgrade MySQL and MariaDB Dialects as they support UNION ALL
* [HHH-13165] - Don't use confusing "this" in the User Guide admonition blocks
* [HHH-13181] - Reduce bootstrap log verbosity
* [HHH-13186] - MariaDB dialect detection does not return the latest by default
* [HHH-13206] - Apply dialect checks from both method and class level.
Changes in 5.4.0.Final (December 12, 2018)
------------------------------------------------------------------------------------------------------------------------
https://hibernate.atlassian.net/projects/HHH/versions/31738/tab/release-report-done
** Bug
* [HHH-13110] - @PreUpdate method on a Embeddable null on the parent caused NullPointerException
* [HHH-13141] - Could not fetch the SequenceInformation from the database when using SQL Server with a case-sensitive collation
* [HHH-13147] - DelayedPostInsertIdentifier handling broken since 5.3.0
** New Feature
* [HHH-13083] - Add st_makeenvelope to the supported PostGIS functions in hibernate-spatial
** Task
* [HHH-13095] - Document how to use arithmetic expressions in CASE statements
* [HHH-13096] - Document that composite identifier cannot use auto-generated properties
** Improvement
* [HHH-10778] - Add support for non-public AttributeConverter implementations
* [HHH-13144] - Move the doInAutoCommit utility to TranscationUtil
* [HHH-13156] - Enhance the @AnyMetaDef annotation section with more details about the optimal placement
Changes in 5.4.0.CR2 (November 29, 2018)
------------------------------------------------------------------------------------------------------------------------
https://hibernate.atlassian.net/projects/HHH/versions/31729/tab/release-report-done
** Bug
* [HHH-13107] - JtaWithStatementsBatchTest fails on Oracle
* [HHH-13111] - Subquery cannot occur in select clause anymore for Criteria API
* [HHH-13112] - Proxies on entity types in the default package lead to MappingException with JDK9+
* [HHH-13116] - Jaxb-runtime transitive dependencies are ignored when building a Maven project on JDK11 with a dependency to Hibernate ORM
* [HHH-13118] - Use the provided class loader even when using the default URI
* [HHH-13128] - Missing jaxb-runtime dependency for hibernate-jpamodelgen
** Task
* [HHH-13043] - Upgrade to JAXB 2.3
** Improvement
* [HHH-13102] - Document how catalog and schema attributes need to be applied based on the underlying DB capabilities
* [HHH-13115] - Document how to define timezone per tenant when using Multitenant Database
* [HHH-13124] - Document the CachingRegionFactory resolution algorithm has changed
* [HHH-13125] - Remove the Javadoc links in the User Guide pointing internal classes
* [HHH-13127] - Document JAXB dependencies should be added for using hibernate-jpamodelgen in Eclipse IDE
Changes in 5.4.0.CR1 (November 15, 2018)
------------------------------------------------------------------------------------------------------------------------
https://hibernate.atlassian.net/projects/HHH/versions/31691/tab/release-report-done
** Bug
* [HHH-7686] - org.hibernate.proxy.map.MapProxy loses all important state on serialization
* [HHH-8805] - [SchemaUpdate] javax.persistence.ForeignKey doesn't respect ConstraintMode.NO_CONSTRAINT
* [HHH-10201] - Hibernate does not audit @ElementCollection when revision_on_collection_change is false
* [HHH-10603] - ORA-00932: inconsistent datatypes: expected - got BLOB after HHH-10345 with Oracle12cDialect
* [HHH-10891] - Exception at bootstrap when @Any is inside an @Embeddable object
* [HHH-11096] - @CreationTimestamp doesn't works with @Column(nullable=false)
* [HHH-11209] - NullPointerException in EntityType.replace() with a PersistentBag
* [HHH-11771] - @Id annotation ignored with @MappedSuperclass inheritance
* [HHH-12200] - Docs mention outdated APIs
* [HHH-12320] - @JoinColumn's foreign key custom name does not work with @MapsId
* [HHH-12425] - LazyInitializationIssue when enhancement enableDirtyTracking is enabled after session is committed
* [HHH-12436] - Attempted to assign id from null one-to-one property
* [HHH-12492] - JPA delete query generated has missing table alias and thus incorrect semantics
* [HHH-12542] - WildFly integration test, HibernateNativeAPINaturalIdTestCase, fails when security manager is enabled
* [HHH-12666] - Add an option for restoring 5.1 native exception handling
* [HHH-12675] - @Table(Inverse=true) ignored for SecondaryTables in JoinedSubclassEntityPersister
* [HHH-12695] - Incompatibility in return value for org.hibernate.procedure.ParameterRegistration.getType() 5.1 vs 5.3
* [HHH-12718] - Entity changes in @PreUpdate callback are not persisted when lazy loading is active for more than one field
* [HHH-12720] - LazyInitializationException with hibernate.enable_lazy_load_no_trans
* [HHH-12740] - Subselect fetching doesn't work when multiLoad was used
* [HHH-12753] - org.hibernate.envers.test.integration.collection.StringMapNationalizedLobTest fails with DB2
* [HHH-12768] - TimeAndTimestampTest fails with SQL Server and MYSQL
* [HHH-12771] - Caused by: java.lang.UnsupportedOperationException: Cache provider [org.hibernate.cache.ehcache.internal.EhcacheRegionFactory@3271ec2a] does not support `transactional` access
* [HHH-12776] - NullPointerException when executing native query on an Audited Entity
* [HHH-12779] - Revert HHH-12670 - Allows native SQL queries that take a given resultClass to map the result set to the required type
* [HHH-12781] - Update Javassist dependency to 3.23.1
* [HHH-12784] - Javassist support broken by HHH-12760
* [HHH-12786] - Deleting an entity leads to NullPointerException in ByteBuddy proxy
* [HHH-12787] - SessionJdbcBatchTest hangs with DB2
* [HHH-12791] - ComponentTuplizer generates a LOT of proxy classes when using Bytebuddy as bytecode provider
* [HHH-12795] - Setting FlushMode to manual for a @NamedQuery is ignored
* [HHH-12797] - Fix cache modes relationships table layout in the documentation
* [HHH-12798] - Nested spatial functions are not rendered correctly on SAP HANA
* [HHH-12800] - TuplizerInstantiatesByteBuddySubclassTest uses ByteBuddy operation unsafe with JDK 11
* [HHH-12802] - Hibernate does not throw an exception when more than one entity is loaded with the same ID
* [HHH-12815] - LocalDateCustomSessionLevelTimeZoneTest fails with mysql 5.5 and 5.7
* [HHH-12822] - Skip "case when" tests requiring casts for DB2
* [HHH-12823] - CompositeIdTest.testDistinctCountOfEntityWithCompositeId fails on databases that don't support tuple distinct counts because it expects wrong exception
* [HHH-12824] - ASTParserLoadingTest.testComponentNullnessChecks fail with DB2 because it uses legacy-style query parameter
* [HHH-12825] - CriteriaHQLAlignmentTest.testCountReturnValues fails on databases that don't support tuple distinct counts because it expects wrong exception
* [HHH-12826] - Persist cascade of collection fails when orphan removal enabled with flush mode commit.
* [HHH-12827] - NUMERIC column type is not handled correctly on DB2
* [HHH-12829] - Invalid references to outdated EhCache classes
* [HHH-12832] - SchemaUpdateHaltOnErrorTest and SchemaMigratorHaltOnErrorTest fail with DB2
* [HHH-12833] - UniqueConstraintDropTest fails with DB2
* [HHH-12834] - org.hibernate.envers.test.integration.collection.StringMapNationalizedLobTest fails with Sybase
* [HHH-12835] - Wrong assertion in BatchFetchQueueHelper
* [HHH-12838] - AndNationalizedTests fails with DB2
* [HHH-12839] - EntityProxySerializationTest fails with oracle
* [HHH-12842] - Non-optional OneToOne relation can't be lazy loaded anymore
* [HHH-12843] - CreateDeleteTest and FlushIdGenTest fail with ORA-00936 on oracle
* [HHH-12844] - HbmWithIdentityTest fails with ORA-00936 on oracle
* [HHH-12846] - Merge cascade of collection fails when orphan removal enabled with flush mode commit
* [HHH-12847] - NullPointerException in FetchStyleLoadPlanBuildingAssociationVisitationStrategy::adjustJoinFetchIfNeeded
* [HHH-12848] - UpgradeSkipLockedTest, PessimisticReadSkipLockedTest and OracleFollowOnLockingTest fail with Oracle12c
* [HHH-12849] - QuotedIdentifierTest fails with ORA-04043 on Oracle12c
* [HHH-12850] - null values for columns mapped as "Boolean" cause exception when saving entity with SAP Sql Anywhere jdbc4
* [HHH-12851] - ConverterTest fails with SQL Server depending on collation
* [HHH-12861] - SchemaUpdate doesn't work with Sybase
* [HHH-12863] - SchemaUpdateTest should be skipped with Sybase
* [HHH-12868] - Using CacheConcurrencyStrategy.NONE leads to a NPE when trying to load an entity
* [HHH-12869] - SingletonEhcacheRegionFactory initialization fails
* [HHH-12871] - Metamodel contains managed types related to dynamic-map entities that have been excluded.
* [HHH-12875] - Class level where="..." clause in hbm.xml mappings is not enforced on collections of that class
* [HHH-12880] - LockModeTest hangs indefinitely with Sybase due to HHH-12847
* [HHH-12882] - Where clauses mapped on collections and entities need parentheses when used in conjunction
* [HHH-12883] - NaturalIdDereferenceTest fails with Sybase
* [HHH-12890] - Fix link to JPA Metamodel generator documentation
* [HHH-12903] - CommitFlushCollectionTest fails when running on Oracle.
* [HHH-12905] - Passing null as parameter is not allowed even when enablePassingNulls() has been called
* [HHH-12906] - Statistics.getCollectionRoleNames() reports incorrect value
* [HHH-12913] - AuditJoinTable does not work when specified in an AuditOverride annotation.
* [HHH-12915] - Concurrency issue within org.hibernate.internal.SessionFactoryImpl
* [HHH-12920] - AbstractCachedDomainDataAccess.clearCache() throws MissingFormatArgumentException at DEBUG level
* [HHH-12921] - Hibernate Connection Pool Validation Thread should be defined as a daemon Thread
* [HHH-12927] - Immutable warning issued if immutable entities are referenced but not changed during update
* [HHH-12931] - Revert HHH-12542 as it introduces some issues with the security manager
* [HHH-12932] - Add privileged blocks in ByteBuddyState initialization
* [HHH-12933] - Generate_statistics grows QueryStatistics ConcurrentHashMap indefinitely
* [HHH-12934] - Exception handling documentation does not apply only to "Session-per-application anti-pattern"
* [HHH-12935] - Constraint and AuxiliaryDatabaseObject export identifiers are not qualified by schema or catalog
* [HHH-12937] - Where clause for collections of basic, embeddable and "any" elements is ignored when mapped using hbm.xml
* [HHH-12939] - Database name not quoted at schema update
* [HHH-12944] - MultiIdentifierLoadAccess ignores the 2nd level cache
* [HHH-12945] - MapJoin#entry() does not seem to work.
* [HHH-12955] - hibernate.hbm2ddl.auto option 'create-only' not recognized
* [HHH-12963] - HANA dialect doesn't set internal configuration for use_unicode_string_types correctly
* [HHH-12964] - Upgrade to dom4j 2.1.1
* [HHH-12966] - Make statistics serializable to allow JMX access
* [HHH-12968] - Flush is not flushing inserts for inherited tables before a select within a transaction
* [HHH-12973] - Inconsistent identity generation when using the default @SequenceGenerator with a database sequence having the increment size of 1
* [HHH-12975] - Foreign key constraint cannot be disabled with @JoinColumn(foreignKey=@ForeignKey(NO_CONSTRAINT)) in some cases
* [HHH-12979] - Setting hibernate.javax.cache.uri property value as relative path causes an error
* [HHH-12990] - JPA Model generator does not work in Java 9+
* [HHH-12992] - ClassCastException for an audited ordered collection
* [HHH-12995] - Querying DECIMAL columns via Double fields can lead to precision loss on SAP HANA
* [HHH-13000] - Association with -ToOne relation with JoinTable can't be refreshed on entity with PESSIMISTIC_LOCK
* [HHH-13001] - NPE rendering nested criteria expressions
* [HHH-13012] - JDBC default connection release mode does not match documentation
* [HHH-13027] - org.hibernate.ejb.HibernatePersistence can no longer be used as a persistence provider name
* [HHH-13040] - MetadataBuilderContributor should be applied before MetadataBuildingProcess.prepare
* [HHH-13042] - DelayedPostInsertIdentifier cannot be cast to class java.lang.Integer
* [HHH-13044] - MapsId and flushMode commit causes PersistenceException
* [HHH-13045] - Accessing id property of association within element collection in query leads to exception
* [HHH-13050] - On release of batch it still contained JDBC statements logged; unable to release batch statement
* [HHH-13053] - DelayedPostInsertIdentifier EXCEPTION on flush of identity created PARENT that has sequence created CHILD with cascade, when batch_update is true
* [HHH-13060] - Throw an exception when two entities are declared with the same name
* [HHH-13062] - Migrate User Guide links from Java EE 7 to 8
* [HHH-13064] - Documentation of Lock and LockModeType is on two columns instead of 3
* [HHH-13070] - callbackRegistry is not injected to event listener when appended to listener group using REPLACE_ORIGINAL duplication strategy
* [HHH-13076] - Hibernate “Transaction already active” behaviour with custom transaction manager
* [HHH-13097] - Hibernate enhancer is superslow after upgrade to latest 5.3 or 5.4-SNAPSHOT
** New Feature
* [HHH-12857] - Support the security manager with ByteBuddy as bytecode provider
** Task
* [HHH-10782] - Add a comment about what you can expect from a query plan cache cleanup
* [HHH-12730] - User types built using 5.1 are not binary compatible with 5.3
* [HHH-12751] - Remove the hibernate-infinispan OSGi feature as it's now provided by Infinispan
* [HHH-12762] - No longer needing to use port-offset in WildFly integration tests
* [HHH-12774] - JARs missing from the distribution ZIP
* [HHH-12785] - Test Javassist support
* [HHH-12788] - Enable mockito-inline for the Agroal integration module
* [HHH-12789] - Upgrade to Mockito 2.19.0