Commit Graph

12123 Commits

Author SHA1 Message Date
Andrea Boriero 2952b60cc3 HHH-14624 add test 2021-06-01 15:19:44 +01:00
Gavin King fa261190ec HHH-14240 Stop generating fragments of uppercase SQL
Hibernate generates lowercase SQL.

(Note that I already fixed all this in H6, but not in H5.)
2021-06-01 15:16:10 +01:00
Andrea Boriero d11abccefe Merge remote-tracking branch 'upstream/main' into wip/6.0_merge_8 2021-05-31 16:35:10 +02:00
Andrea Boriero d413bdf2e9 Fix errors after merge with main 2021-05-31 16:21:31 +02:00
Andrea Boriero 451568f322 Merge remote-tracking branch 'upstream/main' into wip/6.0_merge_7 2021-05-31 14:55:18 +02:00
Nathan Xu 19c774831c HHH-14139 BasicBinder Trace Logging Causes Duplicated Message 2021-05-31 14:06:43 +02:00
Andrea Boriero 2c6e000537 Merge branch 'wip/6.0_merge_6' into wip/6.0 2021-05-31 13:18:38 +02:00
Andrea Boriero 88f50a1943 Fix jakarta tests 2021-05-31 13:02:16 +02:00
Andrea Boriero 020319b4fb Re-enable additional tests 2021-05-27 12:02:08 +02:00
Andrea Boriero f47a44e1cf Fix eager batch collection not initialized 2021-05-27 09:31:43 +02:00
Andrea Boriero 21c607c929 Fix CollectionLoaderBatchKey parameters binding error 2021-05-27 09:31:43 +02:00
Andrea Boriero 629b318731 Fix SmqBagJoin, SqmSetJoin and SqmListJoin throwing NotYetImplementedFor6Exception 2021-05-27 09:31:43 +02:00
Steve Ebersole cbeedd1c32 HHH-14634 : Gradle Enterprise
- added JDK version as tag
- added job-name (for CI) as tag
2021-05-26 12:36:59 -05:00
Yoann Rodière 07eca3883d HHH-14635 Upgrade to log4j 2 2021-05-26 09:05:56 +02:00
Yoann Rodière 0c74a9263c HHH-14635 Update to latest JUnit 2021-05-26 09:05:56 +02:00
Steve Ebersole 1238e5261d HHH-14634 : Gradle Enterprise
- removed older "build scan recipes" plugin
- adjusted CI handling based on feedback
2021-05-25 16:39:52 -05:00
Steve Ebersole d7d74d0875 HHH-14634 : Gradle Enterprise
- Re-added setting rootProject name
2021-05-25 16:11:46 -05:00
Christian Beikov 8c9330a8ff Fix jakarta tests 2021-05-25 18:11:29 +02:00
nathan.xu f90a5f930b HHH-14607 prefer FetchOptions over FetchStrategy 2021-05-25 07:29:52 -05:00
Andrea Boriero c631f3924d Fix hibernate-core-jakarta test failure 2021-05-25 09:19:38 +02:00
Vlad Mihalcea cea044ec69 HHH-14632 - Call statistics.queryPlanCacheHit and statistics.queryPlanCacheMiss for FilterQueryPlan and NativeSQLQueryPlan 2021-05-25 07:41:07 +02:00
Steve Ebersole b2bdcf9778 HHH-14634 : Gradle Enterprise
- Allow for passing `hibernatePublishUsername`, `hibernatePublishPassword`, ``hibernatePluginPortalUsername` and hibernatePluginPortalPassword` as system-properties (-D) as well as property-properties (-P).  Jenkins needs to specify them as system-properties
2021-05-24 15:44:21 -05:00
Andrea Boriero ffae5474a6 Merge remote-tracking branch 'upstream/main' into wip/6.0_merge_6 2021-05-24 20:41:03 +02:00
Steve Ebersole 63c10e8ec0 HHH-14634 : Gradle Enterprise
- extracted config into `gradle-enterprise.gradle` to help move config to other branches/projects
2021-05-24 12:25:53 -05:00
Steve Ebersole 4880eab484 HHH-14634 : Gradle Enterprise 2021-05-24 11:49:58 -05:00
Steve Ebersole 80801d27bb Improved Gradle Plugin Portal auth handling 2021-05-24 11:49:58 -05:00
Andrea Boriero dfa2d915e1 Merge branch 'main_2' into wip/6.0_merge_5 2021-05-24 16:07:43 +02:00
Andrea Boriero 466c9b5f38 Merge branch 'main_2' into wip/6.0_merge_5 2021-05-24 16:00:11 +02:00
Hibernate-CI 7570f39d10 5.5.0-SNAPSHOT 2021-05-24 11:31:12 +00:00
Hibernate-CI ad57a1dde2 5.5.0.CR1 2021-05-24 11:24:50 +00:00
Christoph Dreis fc3accfbd1 HHH-14574 Avoid NPEs from LoadContexts.cleanup(ResultSet) 2021-05-24 12:08:05 +02:00
Andrea Boriero 26e858c78b HHH-14616 Change VERSION_COLUMN_ALIAS from v to version_ 2021-05-24 10:46:29 +01:00
Gail Badner 6bb1900495 HHH-14616 : Add test case with default hibernate.globally_quoted_identifiers (=false) and version column quoted 2021-05-24 10:46:29 +01:00
Andrea Boriero e76a60cbfc HHH-14616 Oprimistic Lock throws org.hibernate.exception.SQLGrammarException: could not retrieve version 2021-05-24 10:46:29 +01:00
Andrea Boriero 75bcb6bc0c HHH-14616 Add test for issue 2021-05-24 10:46:29 +01:00
Christian Beikov a57c0e34ff HHH-14618 Allow passing multiple script source files separated by comma 2021-05-24 11:42:36 +02:00
Christian Beikov bf19f98c2d HHH-14619 Test and fix ClassCastException because collection of uninitialized proxy is dirty checked 2021-05-21 09:15:36 +02:00
gavin 6dc3b4a726 make logFlushResults() protected for the benefit of HR 2021-05-20 15:07:34 +01:00
Sanne Grinovero e6688f8ebc HHH-14622 Improved iteration of PreLoadEventListener 2021-05-20 14:24:50 +01:00
Yoann Rodière ccc5eb1305 HHH-14620 Remove duplicate assertions in LazyCollectionLoadingTest 2021-05-20 11:53:57 +02:00
Yoann Rodière 12cb577f9f HHH-14620 Test incorrect initialization of a collection with extended bytecode enhancement 2021-05-20 11:53:57 +02:00
Yoann Rodière b9270e44b1 HHH-14620 Do not initialize collections just to take a snapshot of their size
As far as I can tell this is safe enough for dirty tracking:

* The collection tracker will return a size of -1 for that collection
* Which is exactly the behavior we currently get after
  $$_hibernane_clearDirtyCollectionNames is called if a collection has
  been "retrieved" (getter called) but was not initialized.
* This will mainly prevent some optimizations because we will no longer
  be able to tell whether a collection is "dirty" or not.

I think we should be able to restore those optimizations: for
PersistentCollection instances, we would store the "initial" size
inside the collection itself upon initialization,
and we would compare THAT size to the current size in implementations
of $$_hibernate_areCollectionFieldsDirty (see
org.hibernate.bytecode.enhance.internal.bytebuddy.CodeTemplates).

Alternatively we could store the CollectionTracker inside the
PersistentCollection so that the collection can update the tracker
upon initialization.

However, that's outside the scope of this bug, that would require
significant testing, and that may cause conflicts with ORM 6, so I won't
do it here.
2021-05-20 11:53:57 +02:00
nathan.xu 2e875f9b8a HHH-14617 remove QueryLiteralRendering and LiteralHandlingMode 2021-05-20 11:26:22 +02:00
Steve Ebersole b51fb9fe03 Fixed problems with
- javadoc generation
- SourceForge distribution bundles
2021-05-19 16:15:57 -05:00
Sanne Grinovero eb6c68cdc6 HHH-14621 Introduce new methods on EventListenerGroup which allow Hibernate Reactive to fire events more efficiently 2021-05-19 20:58:43 +01:00
Steve Ebersole 9cca31153c Post-steps for release : `6.0.0.Alpha8` 2021-05-18 15:52:50 -05:00
Steve Ebersole 0bda34b9af Pre-steps for release : `6.0.0.Alpha8` 2021-05-18 15:52:50 -05:00
Steve Ebersole 2e1ebfc4da prepare for 6.0.0.Alpha8 2021-05-18 15:50:10 -05:00
Steve Ebersole 5ae9e9fb7e prepare for 6.0.0.Alpha8 2021-05-18 14:58:16 -05:00
Steve Ebersole 8518c04862 prepare for 6.0.0.Alpha8 2021-05-18 14:55:00 -05:00